mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Prevent crash
This commit is contained in:
@@ -5288,7 +5288,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
if (collapse_multiple && expanded > 0 && count > 1) {
|
||||
values.get("expanded").clear();
|
||||
updateExpanded();
|
||||
adapter.notifyDataSetChanged();
|
||||
rvMessage.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
adapter.notifyDataSetChanged();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user