mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-05 02:39:30 +02:00
Remove old app suspending logic
This commit is contained in:
parent
d80a7ce878
commit
e83de74f6a
4 changed files with 0 additions and 35 deletions
|
@ -335,14 +335,6 @@ class BackgroundTaskLogic(val appLogic: AppLogic) {
|
|||
if (category == null) {
|
||||
usedTimeUpdateHelper?.commit(appLogic)
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
openLockscreen(foregroundAppPackageName, foregroundAppActivityName)
|
||||
} else if (category.temporarilyBlocked or (parentCategory?.temporarilyBlocked == true)) {
|
||||
usedTimeUpdateHelper?.commit(appLogic)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue