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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java

Issue 2623583002: Fix title and url animation for media in CCT (Closed)
Patch Set: Changed to stateful 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
Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
index f6549cd06104117f94be1c96d7742cbd0b882b73..ce7be9676ffc98cabd35f910fdd5edda3a1f5665 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
@@ -68,6 +68,7 @@ import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType;
import org.chromium.chrome.browser.tabmodel.TabModelObserver;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.tabmodel.TabModelSelectorImpl;
+import org.chromium.chrome.browser.toolbar.CustomTabToolbar;
import org.chromium.chrome.browser.toolbar.ToolbarControlContainer;
import org.chromium.chrome.browser.util.ColorUtils;
import org.chromium.chrome.browser.util.UrlUtilities;
@@ -1013,7 +1014,10 @@ public class CustomTabActivity extends ChromeActivity {
@Override
protected void initializeToolbar() {
super.initializeToolbar();
- if (mIntentDataProvider.isMediaViewer()) getToolbarManager().disableShadow();
+ if (mIntentDataProvider.isMediaViewer()) {
+ getToolbarManager().disableShadow();
+ ((CustomTabToolbar) getToolbarManager().getToolbar()).disableTitleAnimation();
+ }
}
/**

Powered by Google App Engine
This is Rietveld 408576698