mirror of https://github.com/M66B/FairEmail.git
Auto hide answer disabled by default
This commit is contained in:
parent
408bf0713c
commit
61b78fe6fe
|
@ -730,6 +730,9 @@ public class ApplicationEx extends Application
|
|||
if (override_width)
|
||||
editor.putBoolean("overview_mode", true);
|
||||
editor.remove("override_width");
|
||||
} else if (version < 2089){
|
||||
if (!prefs.contains("auto_hide_answer"))
|
||||
editor.putBoolean("auto_hide_answer", !Helper.isAccessibilityEnabled(context));
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)
|
||||
|
|
|
@ -503,7 +503,7 @@ public class FragmentMessages extends FragmentBase
|
|||
quick_scroll = prefs.getBoolean("quick_scroll", true);
|
||||
addresses = prefs.getBoolean("addresses", false);
|
||||
hide_attachments = prefs.getBoolean("hide_attachments", false);
|
||||
auto_hide_answer = prefs.getBoolean("auto_hide_answer", !accessibility);
|
||||
auto_hide_answer = prefs.getBoolean("auto_hide_answer", false);
|
||||
swipe_reply = prefs.getBoolean("swipe_reply", false);
|
||||
quick_actions = prefs.getBoolean("quick_actions", true);
|
||||
|
||||
|
@ -7386,10 +7386,9 @@ public class FragmentMessages extends FragmentBase
|
|||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
|
||||
if (!accessibility &&
|
||||
(viewType == AdapterMessage.ViewType.UNIFIED ||
|
||||
viewType == AdapterMessage.ViewType.FOLDER))
|
||||
if (scrolling)
|
||||
if (viewType == AdapterMessage.ViewType.UNIFIED ||
|
||||
viewType == AdapterMessage.ViewType.FOLDER)
|
||||
if (auto_hide_answer && scrolling && !accessibility)
|
||||
fabCompose.hide();
|
||||
else
|
||||
fabCompose.show();
|
||||
|
|
|
@ -732,7 +732,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|||
swAutoImportant.setChecked(prefs.getBoolean("auto_important", false));
|
||||
swResetSnooze.setChecked(prefs.getBoolean("reset_snooze", true));
|
||||
swAutoBlockSender.setChecked(prefs.getBoolean("auto_block_sender", true));
|
||||
swAutoHideAnswer.setChecked(prefs.getBoolean("auto_hide_answer", !accessibility));
|
||||
swAutoHideAnswer.setChecked(prefs.getBoolean("auto_hide_answer", false));
|
||||
swSwipeReply.setChecked(prefs.getBoolean("swipe_reply", false));
|
||||
|
||||
swMoveThreadAll.setChecked(prefs.getBoolean("move_thread_all", false));
|
||||
|
|
Loading…
Reference in New Issue