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

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

Issue 1338903002: Update the key for getting animRes out of an Activity bundle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update the version code to M Created 5 years, 3 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/customtabs/CustomTabIntentDataProvider.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
index 9303af3b8e0089b5d53209236046b2f7856d1e2f..62759734e461c3ed38ef94892463505d60fbef96 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
@@ -14,6 +14,7 @@ import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
+import android.os.Build;
import android.os.Bundle;
import android.os.IBinder;
import android.support.customtabs.CustomTabsIntent;
@@ -74,9 +75,13 @@ public class CustomTabIntentDataProvider {
"android.support.customtabs.extra.TINT_ACTION_BUTTON";
private static final int MAX_CUSTOM_MENU_ITEMS = 5;
- private static final String BUNDLE_PACKAGE_NAME = "android:packageName";
- private static final String BUNDLE_ENTER_ANIMATION_RESOURCE = "android:animEnterRes";
- private static final String BUNDLE_EXIT_ANIMATION_RESOURCE = "android:animExitRes";
+ private static final String ANIMATION_BUNDLE_PREFIX =
+ Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ? "android:activity." : "android:";
+ private static final String BUNDLE_PACKAGE_NAME = ANIMATION_BUNDLE_PREFIX + "packageName";
+ private static final String BUNDLE_ENTER_ANIMATION_RESOURCE =
+ ANIMATION_BUNDLE_PREFIX + "animEnterRes";
+ private static final String BUNDLE_EXIT_ANIMATION_RESOURCE =
+ ANIMATION_BUNDLE_PREFIX + "animExitRes";
private final IBinder mSession;
private final Intent mKeepAliveServiceIntent;
private final int mTitleVisibilityState;
« 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