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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/Shell.java

Issue 2696303004: Android screen orientation lock should lock/unlock the same activity (Closed)
Patch Set: Add data deps to chrome_test_java Created 3 years, 10 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: content/shell/android/java/src/org/chromium/content_shell/Shell.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/Shell.java b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
index 6215bf40ac63039f7b4018d7e9163cb88148ca28..f2afcfbd240c8d51a7d5d9764815c9022a410725 100644
--- a/content/shell/android/java/src/org/chromium/content_shell/Shell.java
+++ b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
@@ -356,13 +356,17 @@ public class Shell extends LinearLayout {
@Override
public void enterFullscreenVideo(View view, boolean isVideoLoaded) {
super.enterFullscreenVideo(view, isVideoLoaded);
- mContentViewRenderView.setOverlayVideoMode(true);
+ if (mContentViewRenderView != null) {
+ mContentViewRenderView.setOverlayVideoMode(true);
+ }
}
@Override
public void exitFullscreenVideo() {
super.exitFullscreenVideo();
- mContentViewRenderView.setOverlayVideoMode(false);
+ if (mContentViewRenderView != null) {
+ mContentViewRenderView.setOverlayVideoMode(false);
+ }
}
};
}

Powered by Google App Engine
This is Rietveld 408576698