diff options
| author | 2024-01-30 13:29:28 +0000 | |
|---|---|---|
| committer | 2024-01-30 13:29:28 +0000 | |
| commit | 9d6a9b7fea8d29dd59794e8c04d0357d08b90db1 (patch) | |
| tree | f261379736d0a6dd368dba111184e27b3b5e9787 | |
| parent | 98a766e4a42ffcc6c75d454d65826c45efecfb39 (diff) | |
| parent | 213650a2fa3748db727fab439099a36fddd36f28 (diff) | |
Merge "Update device entry fg icon to start with an empty state" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/DeviceEntryIconViewBinder.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/DeviceEntryIconViewBinder.kt b/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/DeviceEntryIconViewBinder.kt index 703bb879533c..873cc847fa60 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/DeviceEntryIconViewBinder.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/DeviceEntryIconViewBinder.kt @@ -19,6 +19,7 @@ package com.android.systemui.keyguard.ui.binder import android.annotation.SuppressLint import android.content.res.ColorStateList +import android.util.StateSet import android.view.HapticFeedbackConstants import android.view.View import androidx.lifecycle.Lifecycle @@ -113,6 +114,8 @@ object DeviceEntryIconViewBinder { fgIconView.repeatWhenAttached { repeatOnLifecycle(Lifecycle.State.STARTED) { + // Start with an empty state + fgIconView.setImageState(StateSet.NOTHING, /* merge */ false) launch { fgViewModel.viewModel.collect { viewModel -> fgIconView.setImageState( |