Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7237112d authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

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
parent 61274aba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
 *
 */

package com.android.systemui.keyguard.domain.quickaffordance
package com.android.systemui.keyguard.data.quickaffordance

/**
 * Unique identifier keys for all known built-in quick affordances.
+11 −11
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
 *
 */

package com.android.systemui.keyguard.domain.quickaffordance
package com.android.systemui.keyguard.data.quickaffordance

import android.content.Context
import android.content.Intent
+11 −11
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
 *
 */

package com.android.systemui.keyguard.domain.quickaffordance
package com.android.systemui.keyguard.data.quickaffordance

import android.content.Intent
import com.android.systemui.animation.Expandable
+11 −11
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
 *
 */

package com.android.systemui.keyguard.domain.quickaffordance
package com.android.systemui.keyguard.data.quickaffordance

import com.android.systemui.R
import com.android.systemui.animation.Expandable
Loading