diff options
| author | 2024-09-04 15:39:43 -0700 | |
|---|---|---|
| committer | 2024-09-04 16:23:46 -0700 | |
| commit | 30186ac172b51f81c756dc80e0ddc059d96c97d9 (patch) | |
| tree | 50709948ac6dac826fb11e6416162afed3b3c2f1 | |
| parent | 5656467d2be04bd288f1c65d2bbd5a156686e402 (diff) | |
Remove NotificationPanelView from LockSection
The code to explictly remove lock_icon_view in the LockSection
Composable is a remanant from lecacy UI, so it is removed. Injecting
NotificationPanelView when scene container is enabled also crashes
SystemUI.
Test: verified SystemUI does not crash with LockSection injected and
scene container enabled
Test: verified keyguard works correctly with scene container disabled
Bug: 339448760
Flag: EXEMPT clean up
Change-Id: Id5a3880186ed0b64e56db8f27fa16b06e5a60d25
| -rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/LockSection.kt | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/LockSection.kt b/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/LockSection.kt index 4129c25901e5..46cd58ce6dd0 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/LockSection.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/LockSection.kt @@ -18,7 +18,6 @@ package com.android.systemui.keyguard.ui.composable.section import android.content.Context import android.util.DisplayMetrics -import android.view.View import android.view.WindowManager import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @@ -47,7 +46,6 @@ import com.android.systemui.keyguard.ui.viewmodel.DeviceEntryForegroundViewModel import com.android.systemui.keyguard.ui.viewmodel.DeviceEntryIconViewModel import com.android.systemui.plugins.FalsingManager import com.android.systemui.res.R -import com.android.systemui.shade.NotificationPanelView import com.android.systemui.statusbar.VibratorHelper import dagger.Lazy import javax.inject.Inject @@ -66,7 +64,6 @@ constructor( private val deviceEntryBackgroundViewModel: Lazy<DeviceEntryBackgroundViewModel>, private val falsingManager: Lazy<FalsingManager>, private val vibratorHelper: Lazy<VibratorHelper>, - private val notificationPanelView: NotificationPanelView, ) { @Composable fun SceneScope.LockIcon(overrideColor: Color? = null, modifier: Modifier = Modifier) { @@ -74,10 +71,6 @@ constructor( return } - notificationPanelView.findViewById<View?>(R.id.lock_icon_view)?.let { - notificationPanelView.removeView(it) - } - val context = LocalContext.current AndroidView( |