mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
0ea31723a5
commit
96e16b01e6
|
@ -5288,7 +5288,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
if (collapse_multiple && expanded > 0 && count > 1) {
|
||||
values.get("expanded").clear();
|
||||
updateExpanded();
|
||||
rvMessage.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
adapter.notifyDataSetChanged();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue