mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Simplication
This commit is contained in:
parent
56e88f5f56
commit
62363d1a59
1 changed files with 3 additions and 6 deletions
|
@ -1520,9 +1520,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
fabMore.hide();
|
||||
tvSelectedCount.setVisibility(View.GONE);
|
||||
cardMore.setVisibility(View.GONE);
|
||||
ibArchive.setVisibility(View.GONE);
|
||||
ibJunk.setVisibility(View.GONE);
|
||||
ibTrash.setVisibility(View.GONE);
|
||||
fabError.hide();
|
||||
|
||||
if (viewType == AdapterMessage.ViewType.THREAD) {
|
||||
|
@ -5807,12 +5804,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, Boolean[] result) {
|
||||
cardMore.setVisibility(fabMore.isOrWillBeShown() &&
|
||||
(result[0] || result[1] || result[2])
|
||||
? View.VISIBLE : View.GONE);
|
||||
ibArchive.setVisibility(result[0] ? View.VISIBLE : View.GONE);
|
||||
ibJunk.setVisibility(result[1] ? View.VISIBLE : View.GONE);
|
||||
ibTrash.setVisibility(result[2] ? View.VISIBLE : View.GONE);
|
||||
cardMore.setVisibility(fabMore.isOrWillBeShown() &&
|
||||
(result[0] || result[1] || result[2])
|
||||
? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue