1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 09:17:58 +00:00

Fixed expand/collapse of unselectable folders

This commit is contained in:
M66B 2020-09-22 08:40:42 +02:00
parent 62d9d44431
commit bf48591f8d

View file

@ -373,7 +373,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
return;
TupleFolderEx folder = items.get(pos);
if (folder.tbd != null || !folder.selectable)
if (folder.tbd != null)
return;
switch (view.getId()) {
@ -386,6 +386,9 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
break;
default:
if (listener == null) {
if (!folder.selectable)
return;
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
lbm.sendBroadcast(
new Intent(ActivityView.ACTION_VIEW_MESSAGES)