mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-12 12:03:17 +02:00
Added section to collapse addresses section by default
This commit is contained in:
@@ -117,6 +117,7 @@ public class FragmentMessages extends FragmentEx {
|
||||
private boolean pull;
|
||||
private boolean actionbar;
|
||||
private boolean autoclose;
|
||||
private boolean addresses;
|
||||
|
||||
private long primary = -1;
|
||||
private boolean outbox = false;
|
||||
@@ -178,7 +179,7 @@ public class FragmentMessages extends FragmentEx {
|
||||
threading = prefs.getBoolean("threading", true);
|
||||
actionbar = prefs.getBoolean("actionbar", true);
|
||||
autoclose = prefs.getBoolean("autoclose", true);
|
||||
|
||||
addresses = prefs.getBoolean("addresses", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -350,6 +351,8 @@ public class FragmentMessages extends FragmentEx {
|
||||
public boolean getValue(String name, long id) {
|
||||
if (values.containsKey(name))
|
||||
return values.get(name).contains(id);
|
||||
else if ("addresses".equals(name))
|
||||
return !addresses;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user