Loading packages/SystemUI/src/com/android/systemui/util/AlphaTintDrawableWrapper.java +6 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,12 @@ public class AlphaTintDrawableWrapper extends InsetDrawable { } } @Override public void setTintList(ColorStateList tint) { super.setTintList(tint); mTint = tint; } private void applyTint() { if (getDrawable() != null && mTint != null) { getDrawable().mutate().setTintList(mTint); Loading packages/SystemUI/src/com/android/systemui/util/RoundedCornerProgressDrawable.kt +8 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,10 @@ class RoundedCornerProgressDrawable @JvmOverloads constructor( return super.getChangingConfigurations() or ActivityInfo.CONFIG_DENSITY } override fun canApplyTheme(): Boolean { return (drawable?.canApplyTheme() ?: false) || super.canApplyTheme() } private class RoundedCornerState(private val wrappedState: ConstantState) : ConstantState() { override fun newDrawable(): Drawable { return newDrawable(null, null) Loading @@ -82,5 +86,9 @@ class RoundedCornerProgressDrawable @JvmOverloads constructor( override fun getChangingConfigurations(): Int { return wrappedState.changingConfigurations } override fun canApplyTheme(): Boolean { return true } } } No newline at end of file Loading
packages/SystemUI/src/com/android/systemui/util/AlphaTintDrawableWrapper.java +6 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,12 @@ public class AlphaTintDrawableWrapper extends InsetDrawable { } } @Override public void setTintList(ColorStateList tint) { super.setTintList(tint); mTint = tint; } private void applyTint() { if (getDrawable() != null && mTint != null) { getDrawable().mutate().setTintList(mTint); Loading
packages/SystemUI/src/com/android/systemui/util/RoundedCornerProgressDrawable.kt +8 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,10 @@ class RoundedCornerProgressDrawable @JvmOverloads constructor( return super.getChangingConfigurations() or ActivityInfo.CONFIG_DENSITY } override fun canApplyTheme(): Boolean { return (drawable?.canApplyTheme() ?: false) || super.canApplyTheme() } private class RoundedCornerState(private val wrappedState: ConstantState) : ConstantState() { override fun newDrawable(): Drawable { return newDrawable(null, null) Loading @@ -82,5 +86,9 @@ class RoundedCornerProgressDrawable @JvmOverloads constructor( override fun getChangingConfigurations(): Int { return wrappedState.changingConfigurations } override fun canApplyTheme(): Boolean { return true } } } No newline at end of file