mirror of https://github.com/M66B/FairEmail.git
Auto enable hide button on swipe to hide
This commit is contained in:
parent
e9d4c79072
commit
2d4f6c5d9c
|
@ -632,7 +632,9 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|||
EntityFolder left = (EntityFolder) spLeft.getSelectedItem();
|
||||
EntityFolder right = (EntityFolder) spRight.getSelectedItem();
|
||||
|
||||
final Context context = getContext();
|
||||
if ((left != null && EntityMessage.SWIPE_ACTION_HIDE.equals(left.id)) ||
|
||||
(right != null && EntityMessage.SWIPE_ACTION_HIDE.equals(right.id)))
|
||||
prefs.edit().putBoolean("button_hide", true).apply();
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putLong("left", left == null ? 0 : left.id);
|
||||
|
@ -666,7 +668,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|||
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, Void data) {
|
||||
ToastEx.makeText(context, R.string.title_completed, Toast.LENGTH_LONG).show();
|
||||
ToastEx.makeText(getContext(), R.string.title_completed, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue