commit | 07ac4d03969e2b24ac963b218d2eb8e4d0e1760d | [log] [tgz] |
---|---|---|
author | davidct <davidct@google.com> | Mon Oct 21 19:01:07 2024 +0000 |
committer | davidct <davidct@google.com> | Wed Oct 23 00:15:08 2024 +0000 |
tree | f391d798cce22587d397eb1dc49d5bf399082d24 | |
parent | a7114724095ff9370b01f8fb5599d6caa2fe8316 [diff] |
Add flagging for smartspace event swipe logging Bug: 374150422 Flag: com.android.systemui.smartspace_swipe_event_logging Test: tested manually Change-Id: I1348c6d70a93891974af672eba115d8b48d6ca02
diff --git a/packages/SystemUI/aconfig/systemui.aconfig b/packages/SystemUI/aconfig/systemui.aconfig index 1c29db1..c5d7b6a 100644 --- a/packages/SystemUI/aconfig/systemui.aconfig +++ b/packages/SystemUI/aconfig/systemui.aconfig
@@ -705,6 +705,13 @@ } flag { + name: "smartspace_swipe_event_logging" + namespace: "systemui" + description: "Log card swipe events in smartspace" + bug: "374150422" +} + +flag { name: "pin_input_field_styled_focus_state" namespace: "systemui" description: "Enables styled focus states on pin input field if keyboard is connected"
diff --git a/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins/BcSmartspaceConfigPlugin.kt b/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins/BcSmartspaceConfigPlugin.kt index 84f39af..d16017a 100644 --- a/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins/BcSmartspaceConfigPlugin.kt +++ b/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins/BcSmartspaceConfigPlugin.kt
@@ -23,4 +23,6 @@ val isDefaultDateWeatherDisabled: Boolean /** Gets if Smartspace should use ViewPager2 */ val isViewPager2Enabled: Boolean + /** Gets if card swipe event should be logged */ + val isSwipeEventLoggingEnabled: Boolean }
diff --git a/packages/SystemUI/src/com/android/systemui/smartspace/config/BcSmartspaceConfigProvider.kt b/packages/SystemUI/src/com/android/systemui/smartspace/config/BcSmartspaceConfigProvider.kt index 0e1bf72..5db1dcb 100644 --- a/packages/SystemUI/src/com/android/systemui/smartspace/config/BcSmartspaceConfigProvider.kt +++ b/packages/SystemUI/src/com/android/systemui/smartspace/config/BcSmartspaceConfigProvider.kt
@@ -16,6 +16,7 @@ package com.android.systemui.smartspace.config +import com.android.systemui.Flags.smartspaceSwipeEventLogging import com.android.systemui.Flags.smartspaceViewpager2 import com.android.systemui.flags.FeatureFlags import com.android.systemui.plugins.BcSmartspaceConfigPlugin @@ -27,4 +28,7 @@ override val isViewPager2Enabled: Boolean get() = smartspaceViewpager2() + + override val isSwipeEventLoggingEnabled: Boolean + get() = smartspaceSwipeEventLogging() }