mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-05 10:49:26 +02:00
Always allow emergency calls
This commit is contained in:
parent
128f017f63
commit
b6584e8126
3 changed files with 16 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue