summaryrefslogtreecommitdiffstats
path: root/policy/src
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2014-09-11 21:54:12 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-11 21:54:13 +0000
commitdb352c783575afee2d6bc29baf45c83d5fc421cf (patch)
treef4147eac22d928f0be27590ed583840290eec47a /policy/src
parent784ab49b6e36aa15ce6a00dfbba6215a7991fce3 (diff)
parent9826f636ad4fe3714d60972acd918e09eb44d971 (diff)
downloadframeworks_base-db352c783575afee2d6bc29baf45c83d5fc421cf.zip
frameworks_base-db352c783575afee2d6bc29baf45c83d5fc421cf.tar.gz
frameworks_base-db352c783575afee2d6bc29baf45c83d5fc421cf.tar.bz2
Merge "Have Activity Transitions activited by a new window attribute." into lmp-dev
Diffstat (limited to 'policy/src')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindow.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
index cce30c7..f802e1e 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -124,6 +124,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
private static final int CUSTOM_TITLE_COMPATIBLE_FEATURES = DEFAULT_FEATURES |
(1 << FEATURE_CUSTOM_TITLE) |
(1 << FEATURE_CONTENT_TRANSITIONS) |
+ (1 << FEATURE_ACTIVITY_TRANSITIONS) |
(1 << FEATURE_ACTION_MODE_OVERLAY);
private static final Transition USE_DEFAULT_TRANSITION = new TransitionSet();
@@ -3207,6 +3208,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
if (a.getBoolean(R.styleable.Window_windowContentTransitions, false)) {
requestFeature(FEATURE_CONTENT_TRANSITIONS);
}
+ if (a.getBoolean(R.styleable.Window_windowActivityTransitions, false)) {
+ requestFeature(FEATURE_ACTIVITY_TRANSITIONS);
+ }
final WindowManager windowService = (WindowManager) getContext().getSystemService(
Context.WINDOW_SERVICE);
@@ -3516,7 +3520,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
// Only inflate or create a new TransitionManager if the caller hasn't
// already set a custom one.
- if (hasFeature(FEATURE_CONTENT_TRANSITIONS)) {
+ if (hasFeature(FEATURE_ACTIVITY_TRANSITIONS)) {
if (mTransitionManager == null) {
final int transitionRes = getWindowStyle().getResourceId(
R.styleable.Window_windowContentTransitionManager,