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
1 changed files with 1 additions and 3 deletions

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