Ensure that the battery optimization banner is not displayed after an internal clear cache.
This commit is contained in:
parent
c61b118f42
commit
d8095faa43
8 changed files with 47 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ class FakePushService(
|
|||
private val selectPushProviderLambda: suspend (SessionId, PushProvider) -> Unit = { _, _ -> lambdaError() },
|
||||
private val setIgnoreRegistrationErrorLambda: (SessionId, Boolean) -> Unit = { _, _ -> lambdaError() },
|
||||
private val resetPushHistoryResult: () -> Unit = { lambdaError() },
|
||||
private val resetBatteryOptimizationStateResult: () -> Unit = { lambdaError() },
|
||||
) : PushService {
|
||||
override suspend fun getCurrentPushProvider(): PushProvider? {
|
||||
return registeredPushProvider ?: currentPushProvider()
|
||||
|
|
@ -92,4 +93,8 @@ class FakePushService(
|
|||
override suspend fun resetPushHistory() = simulateLongTask {
|
||||
resetPushHistoryResult()
|
||||
}
|
||||
|
||||
override suspend fun resetBatteryOptimizationState() {
|
||||
resetBatteryOptimizationStateResult()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue