diff options
| author | 2024-02-21 12:32:14 -0800 | |
|---|---|---|
| committer | 2024-02-26 14:08:10 -0800 | |
| commit | d4d13a13aec632b8034ce0df15d372367ab39bae (patch) | |
| tree | a2033142b4896f6ad9fd76cd5ce23b1c2437b8b9 | |
| parent | 230a6ecbae42b84011c584cdbec0f1c4e2e68824 (diff) | |
Remove legacy lock icon in compose LS
The legacy lock icon view was not being removed. So we see it in the top
left of the screen.
Fixes: 326286248
Test: open compose lockscreen.
Flag: ACONFIG com.android.systemui.compose_lockscreen DEVELOPMENT
Change-Id: Ia34c1539d500dd33ab7cd112643b364cefea9c55
| -rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/LockSection.kt | 7 |
1 files changed, 7 insertions, 0 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 be6f022d8d52..31d3fa0be163 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,6 +18,7 @@ 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 @@ -45,6 +46,7 @@ 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 @@ -63,6 +65,7 @@ constructor( private val deviceEntryBackgroundViewModel: Lazy<DeviceEntryBackgroundViewModel>, private val falsingManager: Lazy<FalsingManager>, private val vibratorHelper: Lazy<VibratorHelper>, + private val notificationPanelView: NotificationPanelView, ) { @Composable fun SceneScope.LockIcon(modifier: Modifier = Modifier) { @@ -70,6 +73,10 @@ constructor( return } + notificationPanelView.findViewById<View?>(R.id.lock_icon_view)?.let { + notificationPanelView.removeView(it) + } + val context = LocalContext.current AndroidView( |