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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java

Issue 2635563002: Fix for fullscreen layout timing on Galaxy devices. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java b/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java
index 59542057e6b8174f2d81594fbff8b375156606f3..a0b6f677fe3ff3cb6847924b05bd9497da167151 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java
@@ -138,6 +138,9 @@ public class FullscreenHtmlApiHandler {
contentView.removeOnLayoutChangeListener(this);
}
});
+
+ // Request a layout so the updated system visibility takes affect.
+ contentView.getRootView().requestLayout();
Ted C 2017/01/17 19:30:10 Hmm...I added the case below because we weren't ge
bokan 2017/01/17 21:43:11 You mean leave the removed lines in? Having the re
Ted C 2017/01/17 22:09:45 Oh, that is rather unfortunate (and likely what yo
bokan 2017/01/17 23:35:24 Presumably because we send the MSG_ID_SET_FULLSCRE
break;
}
case MSG_ID_CLEAR_LAYOUT_FULLSCREEN_FLAG: {
@@ -298,9 +301,6 @@ public class FullscreenHtmlApiHandler {
contentView.addOnLayoutChangeListener(mFullscreenOnLayoutChangeListener);
contentView.setSystemUiVisibility(systemUiVisibility);
- // Request a layout so the updated system visibility takes affect.
- contentView.getRootView().requestLayout();
-
mContentViewCoreInFullscreen = contentViewCore;
mTabInFullscreen = tab;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698