mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Prevent crash
This commit is contained in:
@@ -5723,7 +5723,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
void setCompact(boolean compact) {
|
||||
if (this.compact != compact) {
|
||||
this.compact = compact;
|
||||
notifyDataSetChanged();
|
||||
properties.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5731,7 +5731,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
if (this.zoom != zoom) {
|
||||
this.zoom = zoom;
|
||||
textSize = Helper.getTextSize(context, zoom);
|
||||
notifyDataSetChanged();
|
||||
properties.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5742,7 +5742,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
void setSort(String sort) {
|
||||
if (!sort.equals(this.sort)) {
|
||||
this.sort = sort;
|
||||
notifyDataSetChanged();
|
||||
properties.refresh();
|
||||
// Needed to redraw item decorators / add/remove size
|
||||
}
|
||||
}
|
||||
@@ -5762,7 +5762,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
void setFilterDuplicates(boolean filter_duplicates) {
|
||||
if (this.filter_duplicates != filter_duplicates) {
|
||||
this.filter_duplicates = filter_duplicates;
|
||||
notifyDataSetChanged();
|
||||
properties.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5967,6 +5967,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
|
||||
void reply(TupleMessageEx message, String selected, View anchor);
|
||||
|
||||
void refresh();
|
||||
|
||||
void finish();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user