mirror of https://github.com/M66B/FairEmail.git
Reversed auto close
This commit is contained in:
parent
1e22e1abe1
commit
8582ccb97a
|
@ -4040,7 +4040,14 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
finish();
|
||||
else {
|
||||
Log.i("Navigating to id=" + closeId);
|
||||
navigate(closeId, "previous".equals(onclose));
|
||||
|
||||
Context context = getContext();
|
||||
if (context == null)
|
||||
finish();
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean reversed = prefs.getBoolean("reversed", false);
|
||||
navigate(closeId, "previous".equals(onclose) ^ reversed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue