mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 09:49:25 +02:00
Apply internal whitelist only to system Apps
This commit is contained in:
parent
346a66eb58
commit
8048ae35b9
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ sealed class AppBaseHandling {
|
|||
return PauseLogic
|
||||
} else if (
|
||||
(foregroundAppPackageName == BuildConfig.APPLICATION_ID) ||
|
||||
(foregroundAppPackageName != null && AndroidIntegrationApps.ignoredApps[foregroundAppPackageName].let {
|
||||
(foregroundAppPackageName != null && isSystemImageApp && AndroidIntegrationApps.ignoredApps[foregroundAppPackageName].let {
|
||||
when (it) {
|
||||
null -> false
|
||||
AndroidIntegrationApps.IgnoredAppHandling.Ignore -> true
|
||||
|
@ -123,7 +123,7 @@ sealed class AppBaseHandling {
|
|||
return Whitelist.App
|
||||
} else if (
|
||||
foregroundAppPackageName != null && foregroundAppActivityName != null &&
|
||||
AndroidIntegrationApps.shouldIgnoreActivity(foregroundAppPackageName, foregroundAppActivityName)
|
||||
isSystemImageApp && AndroidIntegrationApps.shouldIgnoreActivity(foregroundAppPackageName, foregroundAppActivityName)
|
||||
) {
|
||||
return Whitelist.Activity
|
||||
} else if (foregroundAppPackageName != null && deviceRelatedData.temporarilyAllowedApps.contains(foregroundAppPackageName)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue