1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 13:14:39 +00:00

Simplication

This commit is contained in:
M66B 2022-05-01 12:23:46 +02:00
parent 56e88f5f56
commit 62363d1a59

View file

@ -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