mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-24 16:53:37 +00:00
Refactoring
This commit is contained in:
parent
bf0ff22436
commit
af0afc955c
1 changed files with 14 additions and 10 deletions
|
@ -1459,6 +1459,20 @@ public class FragmentCompose extends FragmentBase {
|
||||||
pgpService.bindToService();
|
pgpService.bindToService();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
bottom_navigation.findViewById(R.id.action_send).setOnLongClickListener(new View.OnLongClickListener() {
|
||||||
|
@Override
|
||||||
|
public boolean onLongClick(View v) {
|
||||||
|
Bundle args = new Bundle();
|
||||||
|
args.putBoolean("force_dialog", true);
|
||||||
|
onAction(R.id.action_check, args, "force");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
@ -1656,16 +1670,6 @@ public class FragmentCompose extends FragmentBase {
|
||||||
bottom_navigation.getMenu().findItem(R.id.action_send).setTitle(R.string.title_encrypt);
|
bottom_navigation.getMenu().findItem(R.id.action_send).setTitle(R.string.title_encrypt);
|
||||||
else
|
else
|
||||||
bottom_navigation.getMenu().findItem(R.id.action_send).setTitle(R.string.title_send);
|
bottom_navigation.getMenu().findItem(R.id.action_send).setTitle(R.string.title_send);
|
||||||
|
|
||||||
bottom_navigation.findViewById(R.id.action_send).setOnLongClickListener(new View.OnLongClickListener() {
|
|
||||||
@Override
|
|
||||||
public boolean onLongClick(View v) {
|
|
||||||
Bundle args = new Bundle();
|
|
||||||
args.putBoolean("force_dialog", true);
|
|
||||||
onAction(R.id.action_check, args, "force");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue