mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:05:28 +00:00
Ensure that the battery optimization banner is not displayed after an internal clear cache.
This commit is contained in:
committed by
Benoit Marty
parent
0a58fb3c59
commit
017664f672
+5
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user