Always allow emergency calls

This commit is contained in:
Jonas Lochmann 2019-09-23 00:00:00 +00:00
parent 128f017f63
commit b6584e8126
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36
3 changed files with 16 additions and 3 deletions

View file

@ -335,7 +335,10 @@ class BackgroundTaskLogic(val appLogic: AppLogic) {
if (category == null) {
usedTimeUpdateHelper?.commit(appLogic)
if (AndroidIntegrationApps.ignoredApps[foregroundAppPackageName] == null) {
if (
AndroidIntegrationApps.ignoredApps[foregroundAppPackageName] == null &&
AndroidIntegrationApps.appsToNotSuspend.contains(foregroundAppPackageName) == false
) {
// don't suspend system apps which are whitelisted in any version
appLogic.platformIntegration.setSuspendedApps(listOf(foregroundAppPackageName), true)
}