mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 18:27:43 +00:00
Show primary folder icon in unified folder only
This commit is contained in:
parent
0f512fc2a2
commit
c191b18fc7
1 changed files with 1 additions and 3 deletions
|
@ -4361,9 +4361,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
menu.findItem(R.id.menu_folders).setVisible(
|
||||
viewType == AdapterMessage.ViewType.UNIFIED &&
|
||||
!EntityFolder.TRASH.equals(type) &&
|
||||
!EntityFolder.JUNK.equals(type) &&
|
||||
primary >= 0);
|
||||
type == null && primary >= 0);
|
||||
ImageButton ib = (ImageButton) menu.findItem(R.id.menu_folders).getActionView();
|
||||
ib.setImageResource(connected
|
||||
? R.drawable.twotone_folder_special_24 : R.drawable.twotone_folder_24);
|
||||
|
|
Loading…
Reference in a new issue