summaryrefslogtreecommitdiff
path: root/packages/SystemUI/docs
diff options
context:
space:
mode:
author Alejandro Nijamkin <nijamkin@google.com> 2022-10-21 12:46:47 -0700
committer Alejandro Nijamkin <nijamkin@google.com> 2022-10-25 13:23:58 -0700
commit7237112d22d8412bbbcea5ebe43dbfd383f14bc3 (patch)
tree415e64adecfc46e992212274be3ee120dc1c6c31 /packages/SystemUI/docs
parent61274aba371c2d28075a424c34d917748e37a4b7 (diff)
Moves quick affordances to data layer.
Because we need to implement a data layer repository that will access quick affordance configs, we need the latter to be moved to the data layer as well (since currently they are in the domain layer and code in the data layer is not allowed to depend on code in the domain layer). This CL has no changes, only moves and renames. Bug: 254858696 Test: All tests still pass. Bottom area affordances still work. Change-Id: Ibe1f0387886950ef7e9ef11a8716603aa547493e
Diffstat (limited to 'packages/SystemUI/docs')
-rw-r--r--packages/SystemUI/docs/device-entry/quickaffordance.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/docs/device-entry/quickaffordance.md b/packages/SystemUI/docs/device-entry/quickaffordance.md
index 38d636d7ff82..95b986faebb4 100644
--- a/packages/SystemUI/docs/device-entry/quickaffordance.md
+++ b/packages/SystemUI/docs/device-entry/quickaffordance.md
@@ -8,7 +8,7 @@ credit card, etc.
### Step 1: create a new quick affordance config
* Create a new class under the [systemui/keyguard/domain/quickaffordance](../../src/com/android/systemui/keyguard/domain/quickaffordance) directory
* Please make sure that the class is injected through the Dagger dependency injection system by using the `@Inject` annotation on its main constructor and the `@SysUISingleton` annotation at class level, to make sure only one instance of the class is ever instantiated
-* Have the class implement the [KeyguardQuickAffordanceConfig](../../src/com/android/systemui/keyguard/domain/quickaffordance/KeyguardQuickAffordanceConfig.kt) interface, notes:
+* Have the class implement the [KeyguardQuickAffordanceConfig](../../src/com/android/systemui/keyguard/data/quickaffordance/KeyguardQuickAffordanceConfig.kt) interface, notes:
* The `state` Flow property must emit `State.Hidden` when the feature is not enabled!
* It is safe to assume that `onQuickAffordanceClicked` will not be invoked if-and-only-if the previous rule is followed
* When implementing `onQuickAffordanceClicked`, the implementation can do something or it can ask the framework to start an activity using an `Intent` provided by the implementation