diff --git a/mobile/android/base/BrowserApp.java b/mobile/android/base/BrowserApp.java index 02490f2c804b..6c941be1e843 100644 --- a/mobile/android/base/BrowserApp.java +++ b/mobile/android/base/BrowserApp.java @@ -1322,7 +1322,7 @@ public class BrowserApp extends GeckoApp if (mMainLayoutAnimator != null) mMainLayoutAnimator.stop(); - boolean isSideBar = (HardwareUtils.isTablet() && getOrientation() == Configuration.ORIENTATION_LANDSCAPE); + boolean isSideBar = !NewTabletUI.isEnabled(this) && (HardwareUtils.isTablet() && getOrientation() == Configuration.ORIENTATION_LANDSCAPE); final int sidebarWidth = getResources().getDimensionPixelSize(R.dimen.tabs_sidebar_width); ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) mTabsPanel.getLayoutParams(); diff --git a/mobile/android/base/moz.build b/mobile/android/base/moz.build index 1ce71e888a37..04018c9e829a 100644 --- a/mobile/android/base/moz.build +++ b/mobile/android/base/moz.build @@ -395,6 +395,7 @@ gbjar.sources += [ 'tabs/RemoteTabsSetupPanel.java', 'tabs/RemoteTabsVerificationPanel.java', 'tabs/TabCurve.java', + 'tabs/TabsGridLayout.java', 'tabs/TabsLayoutAdapter.java', 'tabs/TabsLayoutItemView.java', 'tabs/TabsListLayout.java', diff --git a/mobile/android/base/resources/values-v11/themes.xml b/mobile/android/base/resources/values-v11/themes.xml index a4c9a83ee37c..e15f92162c8b 100644 --- a/mobile/android/base/resources/values-v11/themes.xml +++ b/mobile/android/base/resources/values-v11/themes.xml @@ -46,6 +46,7 @@ @style/Widget.MenuItemActionView @style/Widget.MenuItemDefault @style/Widget.MenuItemSecondaryActionBar + @style/Widget.TabsGridLayout diff --git a/mobile/android/base/resources/values/attrs.xml b/mobile/android/base/resources/values/attrs.xml index a9f1212eadea..9783bcd7af74 100644 --- a/mobile/android/base/resources/values/attrs.xml +++ b/mobile/android/base/resources/values/attrs.xml @@ -38,6 +38,9 @@ + + + diff --git a/mobile/android/base/resources/values/dimens.xml b/mobile/android/base/resources/values/dimens.xml index b340a6de3680..50ed658e8cd0 100644 --- a/mobile/android/base/resources/values/dimens.xml +++ b/mobile/android/base/resources/values/dimens.xml @@ -105,6 +105,9 @@ 150dp + + 200dp + 95dp diff --git a/mobile/android/base/resources/values/styles.xml b/mobile/android/base/resources/values/styles.xml index ca3929f88457..f2ce81cd812e 100644 --- a/mobile/android/base/resources/values/styles.xml +++ b/mobile/android/base/resources/values/styles.xml @@ -179,6 +179,18 @@ true + +