Use defined const instead of magic numbers.
This commit is contained in:
parent
a128bfeb0a
commit
a306fbd0e7
1 changed files with 2 additions and 2 deletions
|
|
@ -22,10 +22,10 @@ class DefaultMutableBatteryOptimizationStore @Inject constructor(
|
||||||
private val defaultPushDataStore: DefaultPushDataStore,
|
private val defaultPushDataStore: DefaultPushDataStore,
|
||||||
) : MutableBatteryOptimizationStore {
|
) : MutableBatteryOptimizationStore {
|
||||||
override suspend fun showBatteryOptimizationBanner() {
|
override suspend fun showBatteryOptimizationBanner() {
|
||||||
defaultPushDataStore.setBatteryOptimizationBannerState(1)
|
defaultPushDataStore.setBatteryOptimizationBannerState(DefaultPushDataStore.BATTERY_OPTIMIZATION_BANNER_STATE_SHOW)
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun onOptimizationBannerDismissed() {
|
override suspend fun onOptimizationBannerDismissed() {
|
||||||
defaultPushDataStore.setBatteryOptimizationBannerState(2)
|
defaultPushDataStore.setBatteryOptimizationBannerState(DefaultPushDataStore.BATTERY_OPTIMIZATION_BANNER_STATE_DISMISSED)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue