Refactoring

This commit is contained in:
M66B 2022-12-13 20:03:17 +01:00
parent b033bef96d
commit de408afa07
1 changed files with 12 additions and 11 deletions

View File

@ -184,17 +184,6 @@ public class FragmentAnswer extends FragmentBase {
}
});
bottom_navigation.findViewById(R.id.action_save).setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
if (LanguageTool.isEnabled(context)) {
onLanguageTool();
return true;
} else
return false;
}
});
// Initialize
FragmentDialogTheme.setBackground(context, view, true);
@ -316,6 +305,18 @@ public class FragmentAnswer extends FragmentBase {
public void onPrepareOptionsMenu(@NonNull Menu menu) {
menu.findItem(R.id.menu_placeholder_firstname).setVisible(BuildConfig.DEBUG);
menu.findItem(R.id.menu_placeholder_lastname).setVisible(BuildConfig.DEBUG);
bottom_navigation.findViewById(R.id.action_save).setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
if (LanguageTool.isEnabled(v.getContext())) {
onLanguageTool();
return true;
} else
return false;
}
});
super.onPrepareOptionsMenu(menu);
}