1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Small improvement

This commit is contained in:
M66B 2020-11-12 09:54:58 +01:00
parent 41acae21c8
commit 43bfea15ba
9 changed files with 43 additions and 0 deletions

View file

@ -564,4 +564,9 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
holder.bindTo(account);
holder.wire();
}
@Override
public void onViewRecycled(@NonNull ViewHolder holder) {
holder.powner.recreate();
}
}

View file

@ -326,4 +326,9 @@ public class AdapterAnswer extends RecyclerView.Adapter<AdapterAnswer.ViewHolder
holder.bindTo(answer);
holder.wire();
}
@Override
public void onViewRecycled(@NonNull ViewHolder holder) {
holder.powner.recreate();
}
}

View file

@ -254,4 +254,9 @@ public class AdapterCertificate extends RecyclerView.Adapter<AdapterCertificate.
holder.bindTo(certificate);
holder.wire();
}
@Override
public void onViewRecycled(@NonNull ViewHolder holder) {
holder.powner.recreate();
}
}

View file

@ -474,6 +474,11 @@ public class AdapterContact extends RecyclerView.Adapter<AdapterContact.ViewHold
holder.wire();
}
@Override
public void onViewRecycled(@NonNull ViewHolder holder) {
holder.powner.recreate();
}
public static class FragmentEditName extends FragmentDialogBase {
@NonNull
@Override

View file

@ -1154,6 +1154,11 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
holder.wire();
}
@Override
public void onViewRecycled(@NonNull ViewHolder holder) {
holder.powner.recreate();
}
interface IFolderSelectedListener {
void onFolderSelected(TupleFolderEx folder);
}

View file

@ -474,4 +474,9 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
holder.bindTo(identity);
holder.wire();
}
@Override
public void onViewRecycled(@NonNull ViewHolder holder) {
holder.powner.recreate();
}
}

View file

@ -5842,6 +5842,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override
public void onViewRecycled(@NonNull ViewHolder holder) {
holder.cowner.recreate();
holder.powner.recreate();
if (holder.ibAvatar != null)
holder.ibAvatar.setImageDrawable(null);
if (holder.tvBody != null)

View file

@ -356,4 +356,9 @@ public class AdapterOperation extends RecyclerView.Adapter<AdapterOperation.View
holder.bindTo(operation);
holder.wire();
}
@Override
public void onViewRecycled(@NonNull ViewHolder holder) {
holder.powner.recreate();
}
}

View file

@ -540,4 +540,9 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
holder.bindTo(rule);
holder.wire();
}
@Override
public void onViewRecycled(@NonNull ViewHolder holder) {
holder.powner.recreate();
}
}