Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(848)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java

Issue 1989203003: Update checks for N+ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java
index e3b2bec5be67723337dde337a75391c7fc8a3baf..5887eba84ce825c158613288b10d58f446e3e59d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java
@@ -75,11 +75,11 @@ public abstract class AsyncInitializationActivity extends AppCompatActivity impl
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(newBase);
- // On N, Chrome should always retain the tab strip layout on tablets. Normally in
+ // On N+, Chrome should always retain the tab strip layout on tablets. Normally in
// multi-window, if Chrome is launched into a smaller screen Android will load the tab
// switcher resources. Overriding the smallestScreenWidthDp in the Configuration ensures
// Android will load the tab strip resources. See crbug.com/588838.
- if (Build.VERSION.CODENAME.equals("N")) {
+ if (Build.VERSION.CODENAME.equals("N") || Build.VERSION.SDK_INT > Build.VERSION_CODES.M) {
int smallestDeviceWidthDp = DeviceFormFactor.getSmallestDeviceWidthDp(this);
if (smallestDeviceWidthDp >= DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP) {

Powered by Google App Engine
This is Rietveld 408576698