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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtils.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/multiwindow/MultiWindowUtils.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtils.java
index 489ae52efaceb6ff48c1c7ba0f876a8dcb1ec0bd..e7b76d3db12a938a345d13688057511685814de9 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtils.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtils.java
@@ -53,7 +53,7 @@ public class MultiWindowUtils {
public boolean isInMultiWindowMode(Activity activity) {
if (activity == null) return false;
- if (Build.VERSION.CODENAME.equals("N")) {
+ if (Build.VERSION.CODENAME.equals("N") || Build.VERSION.SDK_INT > Build.VERSION_CODES.M) {
try {
Method isInMultiWindowModeMethod = Activity.class.getMethod("isInMultiWindowMode");
boolean isInMultiWindowMode = (boolean) isInMultiWindowModeMethod.invoke(activity);

Powered by Google App Engine
This is Rietveld 408576698