Improved show/hide hidden folders

This commit is contained in:
M66B
2019-02-21 07:34:23 +00:00
parent 7bcd1a3286
commit 2a380d1087
5 changed files with 92 additions and 35 deletions

View File

@@ -447,14 +447,11 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
setHasStableIds(true);
}
private boolean showAll = false;
void showHidden(boolean show) {
showAll = show;
set(account, all);
set(account, show, all);
}
public void set(long account, @NonNull List<TupleFolderEx> _folders) {
public void set(long account, boolean showAll, @NonNull List<TupleFolderEx> _folders) {
Log.i("Set account=" + account + " folders=" + _folders.size());
this.account = account;