Refactoring

This commit is contained in:
M66B
2022-09-18 11:33:32 +02:00
parent 35e495cec1
commit 1163c68e24
4 changed files with 261 additions and 251 deletions

View File

@@ -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;