mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-04 10:19:18 +02:00
Allow configuring foreground app query interval
This commit is contained in:
parent
15976189fa
commit
d3403b6866
21 changed files with 261 additions and 13 deletions
|
@ -249,7 +249,7 @@ class BackgroundTaskLogic(val appLogic: AppLogic) {
|
|||
}
|
||||
}
|
||||
|
||||
appLogic.platformIntegration.getForegroundApp(foregroundAppSpec)
|
||||
appLogic.platformIntegration.getForegroundApp(foregroundAppSpec, appLogic.getForegroundAppQueryInterval())
|
||||
val foregroundAppPackageName = foregroundAppSpec.packageName
|
||||
val foregroundAppActivityName = foregroundAppSpec.activityName
|
||||
val activityLevelBlocking = appLogic.deviceEntry.value?.enableActivityLevelBlocking ?: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue