Prevent clicking on account/identity/folder to be deleted

This commit is contained in:
M66B 2019-01-12 11:02:26 +00:00
parent 05b76d6122
commit 57dccf371e
3 changed files with 10 additions and 0 deletions

View File

@ -118,7 +118,10 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
int pos = getAdapterPosition();
if (pos == RecyclerView.NO_POSITION)
return;
EntityAccount account = filtered.get(pos);
if (account.tbd != null)
return;
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
lbm.sendBroadcast(

View File

@ -206,6 +206,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
return;
TupleFolderEx folder = filtered.get(pos);
if (folder.tbd != null)
return;
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
lbm.sendBroadcast(
@ -222,6 +224,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
return false;
final TupleFolderEx folder = filtered.get(pos);
if (folder.tbd != null)
return false;
PopupMenu popupMenu = new PopupMenu(context, itemView);

View File

@ -110,7 +110,10 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
int pos = getAdapterPosition();
if (pos == RecyclerView.NO_POSITION)
return;
TupleIdentityEx identity = filtered.get(pos);
if (identity.tbd != null)
return;
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
lbm.sendBroadcast(