From 7237112d22d8412bbbcea5ebe43dbfd383f14bc3 Mon Sep 17 00:00:00 2001 From: Alejandro Nijamkin Date: Fri, 21 Oct 2022 12:46:47 -0700 Subject: 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 --- packages/SystemUI/docs/device-entry/quickaffordance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/SystemUI/docs') 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 -- cgit v1.2.3-59-g8ed1b