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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/OverviewListLayout.java

Issue 2162243002: Recreate tab switcher stacks/lists when tabs are merged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverse order of if/else Created 4 years, 5 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 | « chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/StackLayout.java ('k') | 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/widget/OverviewListLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/OverviewListLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/OverviewListLayout.java
index 424b302d5dc31c8e71118efcc8bf3fd01d46a9dc..9a0f40d1e6fcbcfb2f5befe3796bc159808bafda 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/OverviewListLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/OverviewListLayout.java
@@ -107,6 +107,15 @@ public class OverviewListLayout extends Layout implements AccessibilityTabModelA
}
@Override
+ public void onTabRestored(long time, int tabId) {
+ super.onTabRestored(time, tabId);
+ // Call show() so that new tabs and potentially the toggle between incognito and normal
+ // lists are created.
+ // TODO(twellington): add animation for showing the restored tab.
+ show(time, false);
+ }
+
+ @Override
public void onTabModelSwitched(boolean incognito) {
super.onTabModelSwitched(incognito);
if (mTabModelWrapper == null) return;
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/StackLayout.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698