Updated on 2026-08-14
This commit is contained in:
parent
0f8519007b
commit
428f1076f0
11 changed files with 248 additions and 185 deletions
|
|
@ -163,7 +163,6 @@ internal class PushNotificationSettingsModel @Inject constructor(
|
|||
return TOGGLE_ORDER
|
||||
.asSequence()
|
||||
.map { id -> id.spec(prefs) }
|
||||
.filter { it.preference.isVisible }
|
||||
.map { spec ->
|
||||
ToggleUM(
|
||||
id = spec.id,
|
||||
|
|
|
|||
|
|
@ -286,14 +286,14 @@ class PushNotificationSettingsModelTest {
|
|||
}
|
||||
|
||||
private fun allFalse() = WalletPushNotificationPreferences(
|
||||
transactionAlerts = PushNotificationPreference(isEnabled = false, isVisible = true),
|
||||
offersUpdates = PushNotificationPreference(isEnabled = false, isVisible = true),
|
||||
priceAlerts = PushNotificationPreference(isEnabled = false, isVisible = true),
|
||||
transactionAlerts = PushNotificationPreference(isEnabled = false),
|
||||
offersUpdates = PushNotificationPreference(isEnabled = false),
|
||||
priceAlerts = PushNotificationPreference(isEnabled = false),
|
||||
)
|
||||
|
||||
private fun anyOn() = WalletPushNotificationPreferences(
|
||||
transactionAlerts = PushNotificationPreference(isEnabled = true, isVisible = true),
|
||||
offersUpdates = PushNotificationPreference(isEnabled = false, isVisible = true),
|
||||
priceAlerts = PushNotificationPreference(isEnabled = false, isVisible = true),
|
||||
transactionAlerts = PushNotificationPreference(isEnabled = true),
|
||||
offersUpdates = PushNotificationPreference(isEnabled = false),
|
||||
priceAlerts = PushNotificationPreference(isEnabled = false),
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue