mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Use/check recycler view adapter position
This commit is contained in:
@@ -75,7 +75,10 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
||||
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
EntityAccount account = filtered.get(getLayoutPosition());
|
||||
int pos = getAdapterPosition();
|
||||
if (pos == RecyclerView.NO_POSITION)
|
||||
return;
|
||||
EntityAccount account = filtered.get(pos);
|
||||
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(
|
||||
|
||||
Reference in New Issue
Block a user