Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Remember injected features instance
Browse files Browse the repository at this point in the history
  • Loading branch information
p42rthicle committed Oct 13, 2024
1 parent 5db2448 commit 7778572
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,12 @@ fun AmountKeyboard(
**/

val context = LocalContext.current
val features = EntryPointAccessors.fromApplication(
context.applicationContext,
FeaturesEntryPoint::class.java
).getFeatures()
val features = remember {
EntryPointAccessors.fromApplication(
context.applicationContext,
FeaturesEntryPoint::class.java
).getFeatures()
}
val isStandardLayout = features.standardKeypadLayout.asEnabledState()

// Decide the order of the numbers based on the keypad layout
Expand Down

0 comments on commit 7778572

Please sign in to comment.