mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 01:06:11 +00:00
Auto hide FAB with accessibility
This commit is contained in:
parent
1cba1ad952
commit
a7c5e5de57
2 changed files with 2 additions and 6 deletions
|
@ -7824,7 +7824,7 @@ public class FragmentMessages extends FragmentBase
|
|||
|
||||
if (viewType == AdapterMessage.ViewType.UNIFIED ||
|
||||
viewType == AdapterMessage.ViewType.FOLDER)
|
||||
if (auto_hide_answer && scrolling && !accessibility)
|
||||
if (auto_hide_answer && scrolling)
|
||||
fabCompose.hide();
|
||||
else
|
||||
fabCompose.show();
|
||||
|
@ -7835,7 +7835,7 @@ public class FragmentMessages extends FragmentBase
|
|||
return;
|
||||
|
||||
int expanded = (values.containsKey("expanded") ? values.get("expanded").size() : 0);
|
||||
if (auto_hide_answer && scrolling && !accessibility)
|
||||
if (auto_hide_answer && scrolling)
|
||||
fabReply.hide();
|
||||
else {
|
||||
if (expanded == 1) {
|
||||
|
|
|
@ -112,8 +112,6 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|||
private Button btnDefaultFolder;
|
||||
private TextView tvDefaultFolder;
|
||||
|
||||
private boolean accessibility;
|
||||
|
||||
final static int MAX_SWIPE_SENSITIVITY = 10;
|
||||
final static int DEFAULT_SWIPE_SENSITIVITY = 6;
|
||||
|
||||
|
@ -199,8 +197,6 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|||
btnDefaultFolder = view.findViewById(R.id.btnDefaultFolder);
|
||||
tvDefaultFolder = view.findViewById(R.id.tvDefaultFolder);
|
||||
|
||||
accessibility = Helper.isAccessibilityEnabled(getContext());
|
||||
|
||||
setOptions();
|
||||
|
||||
// Wire controls
|
||||
|
|
Loading…
Reference in a new issue