Loading packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardAmbientIndicationAreaViewBinder.kt +9 −8 Original line number Diff line number Diff line Loading @@ -67,14 +67,15 @@ object KeyguardAmbientIndicationAreaViewBinder { repeatOnLifecycle(Lifecycle.State.STARTED) { launch { keyguardRootViewModel.alpha.collect { alpha -> view.importantForAccessibility = ambientIndicationArea?.apply { this.importantForAccessibility = if (alpha == 0f) { View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS } else { View.IMPORTANT_FOR_ACCESSIBILITY_AUTO } ambientIndicationArea?.alpha = alpha this.alpha = alpha } } } Loading packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardBottomAreaViewBinder.kt +9 −8 Original line number Diff line number Diff line Loading @@ -176,14 +176,15 @@ object KeyguardBottomAreaViewBinder { launch { viewModel.alpha.collect { alpha -> view.importantForAccessibility = ambientIndicationArea?.apply { this.importantForAccessibility = if (alpha == 0f) { View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS } else { View.IMPORTANT_FOR_ACCESSIBILITY_AUTO } ambientIndicationArea?.alpha = alpha this.alpha = alpha } } } Loading packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardIndicationAreaBinder.kt +18 −16 Original line number Diff line number Diff line Loading @@ -73,25 +73,27 @@ object KeyguardIndicationAreaBinder { launch { if (featureFlags.isEnabled(Flags.MIGRATE_SPLIT_KEYGUARD_BOTTOM_AREA)) { keyguardRootViewModel.alpha.collect { alpha -> view.importantForAccessibility = indicationArea.apply { this.importantForAccessibility = if (alpha == 0f) { View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS } else { View.IMPORTANT_FOR_ACCESSIBILITY_AUTO } indicationArea.alpha = alpha this.alpha = alpha } } } else { viewModel.alpha.collect { alpha -> view.importantForAccessibility = indicationArea.apply { this.importantForAccessibility = if (alpha == 0f) { View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS } else { View.IMPORTANT_FOR_ACCESSIBILITY_AUTO } indicationArea.alpha = alpha this.alpha = alpha } } } } Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardAmbientIndicationAreaViewBinder.kt +9 −8 Original line number Diff line number Diff line Loading @@ -67,14 +67,15 @@ object KeyguardAmbientIndicationAreaViewBinder { repeatOnLifecycle(Lifecycle.State.STARTED) { launch { keyguardRootViewModel.alpha.collect { alpha -> view.importantForAccessibility = ambientIndicationArea?.apply { this.importantForAccessibility = if (alpha == 0f) { View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS } else { View.IMPORTANT_FOR_ACCESSIBILITY_AUTO } ambientIndicationArea?.alpha = alpha this.alpha = alpha } } } Loading
packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardBottomAreaViewBinder.kt +9 −8 Original line number Diff line number Diff line Loading @@ -176,14 +176,15 @@ object KeyguardBottomAreaViewBinder { launch { viewModel.alpha.collect { alpha -> view.importantForAccessibility = ambientIndicationArea?.apply { this.importantForAccessibility = if (alpha == 0f) { View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS } else { View.IMPORTANT_FOR_ACCESSIBILITY_AUTO } ambientIndicationArea?.alpha = alpha this.alpha = alpha } } } Loading
packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardIndicationAreaBinder.kt +18 −16 Original line number Diff line number Diff line Loading @@ -73,25 +73,27 @@ object KeyguardIndicationAreaBinder { launch { if (featureFlags.isEnabled(Flags.MIGRATE_SPLIT_KEYGUARD_BOTTOM_AREA)) { keyguardRootViewModel.alpha.collect { alpha -> view.importantForAccessibility = indicationArea.apply { this.importantForAccessibility = if (alpha == 0f) { View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS } else { View.IMPORTANT_FOR_ACCESSIBILITY_AUTO } indicationArea.alpha = alpha this.alpha = alpha } } } else { viewModel.alpha.collect { alpha -> view.importantForAccessibility = indicationArea.apply { this.importantForAccessibility = if (alpha == 0f) { View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS } else { View.IMPORTANT_FOR_ACCESSIBILITY_AUTO } indicationArea.alpha = alpha this.alpha = alpha } } } } Loading