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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java

Issue 2869283002: Remove the initial delay when first entering immersive fullscreen in a PWA. (Closed)
Patch Set: Created 3 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
« 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/webapps/WebappActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java
index 243d7f1152777997f6c04f7ed3be63b46a77c85e..e46779b3e6eaebe44b3d64621800344bdf31a76a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java
@@ -132,9 +132,6 @@ public class WebappActivity extends FullScreenActivity {
getActivityTab().addObserver(createTabObserver());
getActivityTab().getTabWebContentsDelegateAndroid().setDisplayMode(
mWebappInfo.displayMode());
- if (mWebappInfo.displayMode() == WebDisplayMode.FULLSCREEN) {
- enterImmersiveMode();
- }
}
@Override
@@ -265,7 +262,7 @@ public class WebappActivity extends FullScreenActivity {
});
}
- asyncSetImmersive(ENTER_IMMERSIVE_MODE_DELAY_MILLIS);
+ asyncSetImmersive(0);
}
/**
@@ -356,6 +353,10 @@ public class WebappActivity extends FullScreenActivity {
}
private void initializeWebappData() {
+ if (mWebappInfo.displayMode() == WebDisplayMode.FULLSCREEN) {
+ enterImmersiveMode();
+ }
+
final int backgroundColor = ColorUtils.getOpaqueColor(mWebappInfo.backgroundColor(
ApiCompatibilityUtils.getColor(getResources(), R.color.webapp_default_bg)));
« 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