mirror of https://github.com/M66B/FairEmail.git
Oops
This commit is contained in:
parent
974e9047e1
commit
7519d4c535
|
@ -1483,8 +1483,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
public void setExpanded(TupleMessageEx message, boolean value) {
|
public void setExpanded(TupleMessageEx message, boolean value) {
|
||||||
// Prevent flicker
|
// Prevent flicker
|
||||||
if (value &&
|
if (value &&
|
||||||
message.accountProtocol != EntityAccount.TYPE_IMAP ||
|
(message.accountProtocol != EntityAccount.TYPE_IMAP ||
|
||||||
(message.accountAutoSeen && !message.ui_seen && !message.folderReadOnly)) {
|
(message.accountAutoSeen && !message.ui_seen && !message.folderReadOnly))) {
|
||||||
message.unseen = 0;
|
message.unseen = 0;
|
||||||
message.ui_seen = true;
|
message.ui_seen = true;
|
||||||
}
|
}
|
||||||
|
@ -1497,7 +1497,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
boolean expand_one = prefs.getBoolean("expand_one", true);
|
boolean expand_one = prefs.getBoolean("expand_one", true);
|
||||||
if (!expand_all && expand_one) {
|
if (!expand_all && expand_one) {
|
||||||
for (Long other : new ArrayList<>(values.get("expanded")))
|
for (Long other : new ArrayList<>(values.get("expanded")))
|
||||||
if (!other.equals(id)) {
|
if (!other.equals(message.id)) {
|
||||||
values.get("expanded").remove(other);
|
values.get("expanded").remove(other);
|
||||||
int pos = adapter.getPositionForKey(other);
|
int pos = adapter.getPositionForKey(other);
|
||||||
if (pos != RecyclerView.NO_POSITION)
|
if (pos != RecyclerView.NO_POSITION)
|
||||||
|
@ -1507,7 +1507,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
|
|
||||||
updateExpanded();
|
updateExpanded();
|
||||||
if (value)
|
if (value)
|
||||||
handleExpand(id);
|
handleExpand(message.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue