Supports triple-tap shortcut for window magnification

Window magnification mode shows triple-tap shortcut.

Bug: 157861708
Test: make RunSettingsRoboTests
Change-Id: I88c7a26e476d3cc5f85fa1b3f267ef3f1453ae38
This commit is contained in:
mincheli
2020-06-18 16:37:01 +08:00
parent 4110e8c19c
commit f670261028

View File

@@ -178,11 +178,6 @@ public class ToggleScreenMagnificationPreferenceFragment extends
final View advancedView = dialog.findViewById(R.id.advanced_shortcut); final View advancedView = dialog.findViewById(R.id.advanced_shortcut);
updateAlertDialogCheckState(); updateAlertDialogCheckState();
// Window magnification mode doesn't support advancedView.
if (isWindowMagnification(getPrefContext())) {
advancedView.setVisibility(View.GONE);
return;
}
// Shows the triple tap checkbox directly if clicked. // Shows the triple tap checkbox directly if clicked.
if (mTripleTapTypeCheckBox.isChecked()) { if (mTripleTapTypeCheckBox.isChecked()) {
advancedView.setVisibility(View.GONE); advancedView.setVisibility(View.GONE);