Keep popup menu on update

This commit is contained in:
M66B
2020-11-12 08:07:30 +01:00
parent f6ce93d564
commit c4d85ab121
10 changed files with 33 additions and 58 deletions

View File

@@ -557,16 +557,11 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
holder.unwire();
TupleAccountEx account = items.get(position);
holder.bindTo(account);
holder.powner.recreate(account == null ? null : account.id);
holder.unwire();
holder.bindTo(account);
holder.wire();
}
@Override
public void onViewDetachedFromWindow(@NonNull ViewHolder holder) {
holder.powner.recreate();
}
}