1
0
Fork 0
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:
M66B 2021-08-01 19:20:30 +02:00
parent 0f512fc2a2
commit c191b18fc7

View file

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