mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
c1d80804d6
commit
ecfbe1df43
|
@ -862,7 +862,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
|
|
||||||
do {
|
do {
|
||||||
Long key = adapter.getKeyAtPosition(pos);
|
Long key = adapter.getKeyAtPosition(pos);
|
||||||
if (key != null && isExpanded(key)) {
|
if (key != null && iProperties.getValue("expanded", key)) {
|
||||||
int first = llm.findFirstVisibleItemPosition();
|
int first = llm.findFirstVisibleItemPosition();
|
||||||
View child = rvMessage.getChildAt(pos - (first < 0 ? 0 : first));
|
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)
|
if (message == null || message.uid == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (isExpanded(message.id))
|
if (iProperties.getValue("expanded", message.id))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (EntityFolder.OUTBOX.equals(message.folderType))
|
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) {
|
private void onActionMove(String folderType) {
|
||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
args.putLong("account", account);
|
args.putLong("account", account);
|
||||||
|
|
Loading…
Reference in New Issue