mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-06 03:50:23 +02:00
Add option to block Apps at system level
This commit is contained in:
parent
3fbf598eb5
commit
03bd3a5100
13 changed files with 427 additions and 18 deletions
|
@ -391,9 +391,11 @@ object ApplyServerDataStatus {
|
|||
assignedAppsVersion = item.version
|
||||
)
|
||||
|
||||
if (thisDeviceUserCategoryIds.contains(item.categoryId)) {
|
||||
runAsync {
|
||||
platformIntegration.setSuspendedApps(item.assignedApps, false)
|
||||
if (!database.config().isExperimentalFlagsSetSync(ExperimentalFlags.SYSTEM_LEVEL_BLOCKING)) {
|
||||
if (thisDeviceUserCategoryIds.contains(item.categoryId)) {
|
||||
runAsync {
|
||||
platformIntegration.setSuspendedApps(item.assignedApps, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue