mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
parent
4adb2ae492
commit
015db693d5
1 changed files with 3 additions and 8 deletions
|
@ -634,7 +634,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
}
|
||||
|
||||
private void clear(boolean loading) {
|
||||
private void clear() {
|
||||
ivAvatarStart.setVisibility(View.GONE);
|
||||
ivAvatarEnd.setVisibility(View.GONE);
|
||||
vwColor.setVisibility(View.GONE);
|
||||
|
@ -660,7 +660,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
tvPreview.setVisibility(View.GONE);
|
||||
tvError.setVisibility(View.GONE);
|
||||
ibHelp.setVisibility(View.GONE);
|
||||
pbLoading.setVisibility(loading ? View.VISIBLE : View.GONE);
|
||||
pbLoading.setVisibility(View.VISIBLE);
|
||||
|
||||
clearExpanded(null);
|
||||
}
|
||||
|
@ -4035,7 +4035,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
holder.unwire();
|
||||
|
||||
if (message == null || context == null)
|
||||
holder.clear(true);
|
||||
holder.clear();
|
||||
else {
|
||||
holder.bindTo(message);
|
||||
holder.wire();
|
||||
|
@ -4050,11 +4050,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
holder.powner.recreate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewRecycled(@NonNull ViewHolder holder) {
|
||||
holder.clear(false);
|
||||
}
|
||||
|
||||
void setSelectionTracker(SelectionTracker<Long> selectionTracker) {
|
||||
this.selectionTracker = selectionTracker;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue