Simplification

This commit is contained in:
M66B 2019-06-25 08:56:59 +02:00
parent c1d80804d6
commit ecfbe1df43
1 changed files with 2 additions and 6 deletions

View File

@ -862,7 +862,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
do {
Long key = adapter.getKeyAtPosition(pos);
if (key != null && isExpanded(key)) {
if (key != null && iProperties.getValue("expanded", key)) {
int first = llm.findFirstVisibleItemPosition();
View child = rvMessage.getChildAt(pos - (first < 0 ? 0 : first));
@ -1281,7 +1281,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (message == null || message.uid == null)
return null;
if (isExpanded(message.id))
if (iProperties.getValue("expanded", message.id))
return null;
if (EntityFolder.OUTBOX.equals(message.folderType))
@ -1291,10 +1291,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
};
private boolean isExpanded(long id) {
return (values.containsKey("expanded") && values.get("expanded").contains(id));
}
private void onActionMove(String folderType) {
Bundle args = new Bundle();
args.putLong("account", account);