mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 08:33:37 +02:00
Refactoring
This commit is contained in:
@@ -2310,7 +2310,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
if (languages == null)
|
||||
languages = new ArrayList<>();
|
||||
|
||||
Pair<Integer, Integer> paragraph = DeepL.getParagraph(etBody);
|
||||
Pair<Integer, Integer> paragraph = StyleHelper.getParagraph(etBody);
|
||||
boolean canTranslate = (DeepL.canTranslate(context) && paragraph != null);
|
||||
|
||||
PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(context, getViewLifecycleOwner(), anchor);
|
||||
@@ -2355,7 +2355,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
}
|
||||
|
||||
private void onMenuTranslate(String target) {
|
||||
final Pair<Integer, Integer> paragraph = DeepL.getParagraph(etBody);
|
||||
final Pair<Integer, Integer> paragraph = StyleHelper.getParagraph(etBody);
|
||||
if (paragraph == null)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user