Allow configuring foreground app query interval

This commit is contained in:
Jonas L 2019-04-15 00:00:00 +00:00
parent 15976189fa
commit d3403b6866
21 changed files with 261 additions and 13 deletions

View file

@ -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