mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 10:39:25 +00:00
Small behavior fix
This commit is contained in:
parent
f714cdc218
commit
0ee837d3ba
2 changed files with 4 additions and 2 deletions
|
@ -234,7 +234,8 @@ public class FragmentAnswer extends FragmentBase {
|
|||
}, null, context));
|
||||
}
|
||||
|
||||
bottom_navigation.findViewById(R.id.action_delete).setVisibility(answer == null ? View.GONE : View.VISIBLE);
|
||||
if (answer == null)
|
||||
bottom_navigation.getMenu().removeItem(R.id.action_delete);
|
||||
|
||||
if (ActivityAnswer.canAnswer(context))
|
||||
cbExternal.setVisibility(View.VISIBLE);
|
||||
|
|
|
@ -1027,7 +1027,8 @@ public class FragmentRule extends FragmentBase {
|
|||
Log.e(ex);
|
||||
} finally {
|
||||
grpReady.setVisibility(View.VISIBLE);
|
||||
bottom_navigation.findViewById(R.id.action_delete).setVisibility(id < 0 ? View.GONE : View.VISIBLE);
|
||||
if (id < 0)
|
||||
bottom_navigation.getMenu().removeItem(R.id.action_delete);
|
||||
bottom_navigation.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue