Refactoring

This commit is contained in:
M66B
2020-11-12 15:08:34 +01:00
parent 42f7cd6444
commit f748c3717c
4 changed files with 13 additions and 12 deletions

View File

@@ -397,7 +397,7 @@ public class FragmentAnswer extends FragmentBase {
int start = args.getInt("start");
int end = args.getInt("end");
etText.setSelection(start, end);
StyleHelper.apply(R.id.menu_link, null, etText, link);
StyleHelper.apply(R.id.menu_link, getViewLifecycleOwner(), null, etText, link);
}
private void onDelete() {
@@ -460,7 +460,7 @@ public class FragmentAnswer extends FragmentBase {
return true;
} else
return StyleHelper.apply(action, view.findViewById(action), etText);
return StyleHelper.apply(action, getViewLifecycleOwner(), view.findViewById(action), etText);
}
public static class FragmentInfo extends FragmentDialogBase {