Loading packages/SystemUI/src/com/android/systemui/settings/brightness/BrightnessSliderView.java +2 −0 Original line number Diff line number Diff line Loading @@ -180,6 +180,8 @@ public class BrightnessSliderView extends FrameLayout { * Sets the scale for the progress bar (for brightness_progress_drawable.xml) * * This will only scale the thick progress bar and not the icon inside * * Used in {@link com.android.systemui.qs.QSAnimator}. */ public void setSliderScaleY(float scale) { if (scale != mScale) { Loading packages/SystemUI/src/com/android/systemui/util/RoundedCornerProgressDrawable.kt +5 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.util import android.content.pm.ActivityInfo import android.content.res.Resources import android.graphics.Rect import android.graphics.drawable.Drawable Loading Loading @@ -64,6 +65,10 @@ class RoundedCornerProgressDrawable @JvmOverloads constructor( return RoundedCornerState(super.getConstantState()!!) } override fun getChangingConfigurations(): Int { return super.getChangingConfigurations() or ActivityInfo.CONFIG_DENSITY } private class RoundedCornerState(private val wrappedState: ConstantState) : ConstantState() { override fun newDrawable(): Drawable { return newDrawable(null, null) Loading Loading
packages/SystemUI/src/com/android/systemui/settings/brightness/BrightnessSliderView.java +2 −0 Original line number Diff line number Diff line Loading @@ -180,6 +180,8 @@ public class BrightnessSliderView extends FrameLayout { * Sets the scale for the progress bar (for brightness_progress_drawable.xml) * * This will only scale the thick progress bar and not the icon inside * * Used in {@link com.android.systemui.qs.QSAnimator}. */ public void setSliderScaleY(float scale) { if (scale != mScale) { Loading
packages/SystemUI/src/com/android/systemui/util/RoundedCornerProgressDrawable.kt +5 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.util import android.content.pm.ActivityInfo import android.content.res.Resources import android.graphics.Rect import android.graphics.drawable.Drawable Loading Loading @@ -64,6 +65,10 @@ class RoundedCornerProgressDrawable @JvmOverloads constructor( return RoundedCornerState(super.getConstantState()!!) } override fun getChangingConfigurations(): Int { return super.getChangingConfigurations() or ActivityInfo.CONFIG_DENSITY } private class RoundedCornerState(private val wrappedState: ConstantState) : ConstantState() { override fun newDrawable(): Drawable { return newDrawable(null, null) Loading