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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java

Issue 2109943002: Workaround RecentTabs blank issue on certain Samsung devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/ntp/RecentTabsPage.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
index 75b3b99a75954c9c2bdfafced31cd6f04f9204ca..8f942993ed5a2b7761d428e7bf147a46fee37a99 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
@@ -195,6 +195,11 @@ public class RecentTabsPage
// another tab.
mIsAttachedToWindow = true;
updateForegroundState();
+
+ // Work around a bug on Samsung devices where the recent tabs page does not appear after
+ // toggling the Sync quick setting. For some reason, the layout is being dropped on the
+ // flow and we need to force a root level layout to get the UI to appear.
+ view.getRootView().requestLayout();
}
@Override
« 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