mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 09:47:13 +00:00
Fixed expanded count when deleting messages
This commit is contained in:
parent
62cc3a447c
commit
36eef0f2f4
1 changed files with 13 additions and 0 deletions
|
@ -6167,6 +6167,19 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
if (viewType == AdapterMessage.ViewType.THREAD) {
|
||||
if (handleThreadActions(messages, null, null))
|
||||
return;
|
||||
|
||||
List<Long> ids = values.get("expanded");
|
||||
if (ids != null)
|
||||
for (long id : ids) {
|
||||
boolean found = false;
|
||||
for (TupleMessageEx message : messages)
|
||||
if (message != null && message.id.equals(id)) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
if (!found)
|
||||
ids.remove(id);
|
||||
}
|
||||
} else {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
boolean autoscroll = prefs.getBoolean("autoscroll", false);
|
||||
|
|
Loading…
Reference in a new issue