mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1068005 - Hide new tablet UI toggle on phones (r=mcomella)
This commit is contained in:
parent
aee0770a6d
commit
fa6d117317
@ -661,9 +661,9 @@ OnSharedPreferenceChangeListener
|
||||
preferences.removePreference(pref);
|
||||
i--;
|
||||
continue;
|
||||
} else if (AppConstants.RELEASE_BUILD &&
|
||||
} else if ((AppConstants.RELEASE_BUILD || !HardwareUtils.isTablet()) &&
|
||||
PREFS_NEW_TABLET_UI.equals(key)) {
|
||||
// Remove toggle for new tablet UI on release builds.
|
||||
// Remove toggle for new tablet UI on release builds and phones.
|
||||
preferences.removePreference(pref);
|
||||
i--;
|
||||
continue;
|
||||
|
@ -159,9 +159,11 @@ public class testSettingsMenuItems extends PixelTest {
|
||||
String[] textReflowUi = { StringHelper.TEXT_REFLOW_LABEL };
|
||||
settingsMap.get(PATH_DISPLAY).add(textReflowUi);
|
||||
|
||||
// New tablet UI can only be enabled in non-release build
|
||||
String[] newTabletUi = { StringHelper.NEW_TABLET_UI };
|
||||
settingsMap.get(PATH_DISPLAY).add(newTabletUi);
|
||||
// New tablet UI can only be enabled on tablets in non-release builds.
|
||||
if (HardwareUtils.isTablet()) {
|
||||
String[] newTabletUi = { StringHelper.NEW_TABLET_UI };
|
||||
settingsMap.get(PATH_DISPLAY).add(newTabletUi);
|
||||
}
|
||||
|
||||
// New tablet UI: we don't allow a page title option.
|
||||
if (NewTabletUI.isEnabled(getActivity())) {
|
||||
|
Loading…
Reference in New Issue
Block a user