mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 01:06:04 +00:00
Prevent crash
This commit is contained in:
parent
0ea31723a5
commit
96e16b01e6
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue