Loading packages/SystemUI/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -774,6 +774,9 @@ <!-- Flag to enable privacy dot views, it shall be true for normal case --> <bool name="config_enablePrivacyDot">true</bool> <!-- Flag to enable privacy chip animation, it shall be true for normal case --> <bool name="config_enablePrivacyChipAnimation">true</bool> <!-- Class for the communal source connector to be used --> <string name="config_communalSourceConnector" translatable="false"></string> Loading packages/SystemUI/src/com/android/systemui/statusbar/events/SystemEventCoordinator.kt +3 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,9 @@ constructor( } private fun isChipAnimationEnabled(): Boolean { return DeviceConfig.getBoolean(NAMESPACE_PRIVACY, CHIP_ANIMATION_ENABLED, true) val defaultValue = context.resources.getBoolean(R.bool.config_enablePrivacyChipAnimation) return DeviceConfig.getBoolean(NAMESPACE_PRIVACY, CHIP_ANIMATION_ENABLED, defaultValue) } } } Loading packages/SystemUI/src/com/android/systemui/statusbar/events/SystemStatusAnimationSchedulerImpl.kt +4 −4 Original line number Diff line number Diff line Loading @@ -243,7 +243,7 @@ constructor( if (!event.showAnimation && event.forceVisible) { // If animations are turned off, we'll transition directly to the dot animationState.value = SHOWING_PERSISTENT_DOT notifyTransitionToPersistentDot() notifyTransitionToPersistentDot(event) return } Loading Loading @@ -335,7 +335,7 @@ constructor( } animators.add(chipAnimationController.onSystemEventAnimationFinish(hasPersistentDot)) if (hasPersistentDot) { val dotAnim = notifyTransitionToPersistentDot() val dotAnim = notifyTransitionToPersistentDot(currentlyDisplayedEvent) if (dotAnim != null) { animators.add(dotAnim) } Loading @@ -344,12 +344,12 @@ constructor( return AnimatorSet().also { it.playTogether(animators) } } private fun notifyTransitionToPersistentDot(): Animator? { private fun notifyTransitionToPersistentDot(event: StatusEvent?): Animator? { logger?.logTransitionToPersistentDotCallbackInvoked() val anims: List<Animator> = listeners.mapNotNull { it.onSystemStatusAnimationTransitionToPersistentDot( currentlyDisplayedEvent?.contentDescription event?.contentDescription ) } if (anims.isNotEmpty()) { Loading Loading
packages/SystemUI/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -774,6 +774,9 @@ <!-- Flag to enable privacy dot views, it shall be true for normal case --> <bool name="config_enablePrivacyDot">true</bool> <!-- Flag to enable privacy chip animation, it shall be true for normal case --> <bool name="config_enablePrivacyChipAnimation">true</bool> <!-- Class for the communal source connector to be used --> <string name="config_communalSourceConnector" translatable="false"></string> Loading
packages/SystemUI/src/com/android/systemui/statusbar/events/SystemEventCoordinator.kt +3 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,9 @@ constructor( } private fun isChipAnimationEnabled(): Boolean { return DeviceConfig.getBoolean(NAMESPACE_PRIVACY, CHIP_ANIMATION_ENABLED, true) val defaultValue = context.resources.getBoolean(R.bool.config_enablePrivacyChipAnimation) return DeviceConfig.getBoolean(NAMESPACE_PRIVACY, CHIP_ANIMATION_ENABLED, defaultValue) } } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/events/SystemStatusAnimationSchedulerImpl.kt +4 −4 Original line number Diff line number Diff line Loading @@ -243,7 +243,7 @@ constructor( if (!event.showAnimation && event.forceVisible) { // If animations are turned off, we'll transition directly to the dot animationState.value = SHOWING_PERSISTENT_DOT notifyTransitionToPersistentDot() notifyTransitionToPersistentDot(event) return } Loading Loading @@ -335,7 +335,7 @@ constructor( } animators.add(chipAnimationController.onSystemEventAnimationFinish(hasPersistentDot)) if (hasPersistentDot) { val dotAnim = notifyTransitionToPersistentDot() val dotAnim = notifyTransitionToPersistentDot(currentlyDisplayedEvent) if (dotAnim != null) { animators.add(dotAnim) } Loading @@ -344,12 +344,12 @@ constructor( return AnimatorSet().also { it.playTogether(animators) } } private fun notifyTransitionToPersistentDot(): Animator? { private fun notifyTransitionToPersistentDot(event: StatusEvent?): Animator? { logger?.logTransitionToPersistentDotCallbackInvoked() val anims: List<Animator> = listeners.mapNotNull { it.onSystemStatusAnimationTransitionToPersistentDot( currentlyDisplayedEvent?.contentDescription event?.contentDescription ) } if (anims.isNotEmpty()) { Loading