Loading packages/SystemUI/aconfig/systemui.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -980,6 +980,16 @@ flag { } } flag { name: "media_controls_lockscreen_shade_bug_fix" namespace: "systemui" description: "Use ShadeInteractor for media location changes" bug: "319244625" metadata { purpose: PURPOSE_BUGFIX } } flag { namespace: "systemui" name: "enable_view_capture_tracing" Loading packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/MediaHierarchyManager.kt +13 −2 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import androidx.annotation.VisibleForTesting import com.android.app.animation.Interpolators import com.android.app.tracing.traceSection import com.android.keyguard.KeyguardViewController import com.android.systemui.Flags.mediaControlsLockscreenShadeBugFix import com.android.systemui.communal.ui.viewmodel.CommunalTransitionViewModel import com.android.systemui.dagger.SysUISingleton import com.android.systemui.dagger.qualifiers.Application Loading Loading @@ -483,8 +484,7 @@ constructor( object : StatusBarStateController.StateListener { override fun onStatePreChange(oldState: Int, newState: Int) { // We're updating the location before the state change happens, since we want // the // location of the previous state to still be up to date when the animation // the location of the previous state to still be up to date when the animation // starts if ( newState == StatusBarState.SHADE_LOCKED && Loading Loading @@ -588,6 +588,17 @@ constructor( } } if (mediaControlsLockscreenShadeBugFix()) { coroutineScope.launch { shadeInteractor.shadeExpansion.collect { expansion -> if (expansion >= 1f || expansion <= 0f) { // Shade has fully expanded or collapsed: force transition amount update setTransitionToFullShadeAmount(expansion) } } } } val settingsObserver: ContentObserver = object : ContentObserver(handler) { override fun onChange(selfChange: Boolean, uri: Uri?) { Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -980,6 +980,16 @@ flag { } } flag { name: "media_controls_lockscreen_shade_bug_fix" namespace: "systemui" description: "Use ShadeInteractor for media location changes" bug: "319244625" metadata { purpose: PURPOSE_BUGFIX } } flag { namespace: "systemui" name: "enable_view_capture_tracing" Loading
packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/MediaHierarchyManager.kt +13 −2 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import androidx.annotation.VisibleForTesting import com.android.app.animation.Interpolators import com.android.app.tracing.traceSection import com.android.keyguard.KeyguardViewController import com.android.systemui.Flags.mediaControlsLockscreenShadeBugFix import com.android.systemui.communal.ui.viewmodel.CommunalTransitionViewModel import com.android.systemui.dagger.SysUISingleton import com.android.systemui.dagger.qualifiers.Application Loading Loading @@ -483,8 +484,7 @@ constructor( object : StatusBarStateController.StateListener { override fun onStatePreChange(oldState: Int, newState: Int) { // We're updating the location before the state change happens, since we want // the // location of the previous state to still be up to date when the animation // the location of the previous state to still be up to date when the animation // starts if ( newState == StatusBarState.SHADE_LOCKED && Loading Loading @@ -588,6 +588,17 @@ constructor( } } if (mediaControlsLockscreenShadeBugFix()) { coroutineScope.launch { shadeInteractor.shadeExpansion.collect { expansion -> if (expansion >= 1f || expansion <= 0f) { // Shade has fully expanded or collapsed: force transition amount update setTransitionToFullShadeAmount(expansion) } } } } val settingsObserver: ContentObserver = object : ContentObserver(handler) { override fun onChange(selfChange: Boolean, uri: Uri?) { Loading