Small fix

This commit is contained in:
M66B 2020-03-26 20:28:09 +01:00
parent 87408886a5
commit 41eb8994c1
2 changed files with 5 additions and 3 deletions

View File

@ -1327,7 +1327,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
cowner.recreate();
boolean show_addresses = !properties.getValue("addresses", message.id);
boolean show_addresses = properties.getValue("addresses", message.id);
boolean show_headers = properties.getValue("headers", message.id);
boolean hasFrom = (message.from != null && message.from.length > 0);

View File

@ -1415,8 +1415,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
public boolean getValue(String name, long id) {
if (values.containsKey(name))
return values.get(name).contains(id);
else if ("addresses".equals(name))
return !addresses;
else {
if ("addresses".equals(name))
return addresses;
}
return false;
}