diff options
| author | Pablo Gamito <pablogamito@google.com> | 2021-09-23 19:52:04 +0200 |
|---|---|---|
| committer | Pablo Gamito <pablogamito@google.com> | 2021-09-27 23:42:15 +0200 |
| commit | a5f3e90212a71816ea2baec0ea71e78651c5c3ed (patch) | |
| tree | 1085a88de3f1a4857660867aa2e4e5667b7ccd56 /core/java | |
| parent | cee2cddebe45672ddc1c2fa101cbf531712b561b (diff) | |
Stop relying on background color attribute to set task transition background
Because the background attribute used to have a different use some apps still set it and it means we could run transitions with unexpected background colors
Test: Existing
Fixes: 200763116
Merged-In: Id42f52760cb9a681c6c33f3c261d7db5e2f71af3
Change-Id: Id42f52760cb9a681c6c33f3c261d7db5e2f71af3
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/animation/Animation.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/core/java/android/view/animation/Animation.java b/core/java/android/view/animation/Animation.java index b296d6f6a052..81e2f3ca98ec 100644 --- a/core/java/android/view/animation/Animation.java +++ b/core/java/android/view/animation/Animation.java @@ -19,7 +19,6 @@ package android.view.animation; import android.annotation.AnimRes; import android.annotation.ColorInt; import android.annotation.InterpolatorRes; -import android.app.ActivityThread; import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.res.TypedArray; @@ -270,15 +269,6 @@ public abstract class Animation implements Cloneable { a.recycle(); - Context uiContext = ActivityThread.currentActivityThread().getSystemUiContext(); - TypedArray uiStyledAttrs = uiContext - .obtainStyledAttributes(attrs, com.android.internal.R.styleable.Animation); - - setBackgroundColor( - uiStyledAttrs.getColor(com.android.internal.R.styleable.Animation_background, 0)); - - uiStyledAttrs.recycle(); - if (resID > 0) { setInterpolator(context, resID); } |
