Added LanguageTool option

This commit is contained in:
M66B
2022-07-09 07:47:29 +02:00
parent 1346eb08e4
commit fb9b15065b
8 changed files with 100 additions and 5 deletions

View File

@@ -1871,9 +1871,12 @@ public class FragmentCompose extends FragmentBase {
bottom_navigation.findViewById(R.id.action_save).setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View view) {
onLanguageTool();
return true;
public boolean onLongClick(View v) {
if (LanguageTool.isEnabled(v.getContext())) {
onLanguageTool();
return true;
} else
return false;
}
});