From 7d1fcff90fdad68246f2079e781bb087c3691c80 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Mon, 15 Apr 2019 00:00:00 +0000 Subject: [PATCH] Improve opening homescreen with the accessibility service --- .../main/java/io/timelimit/android/logic/BackgroundTaskLogic.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/timelimit/android/logic/BackgroundTaskLogic.kt b/app/src/main/java/io/timelimit/android/logic/BackgroundTaskLogic.kt index 14263da..6afaf1c 100644 --- a/app/src/main/java/io/timelimit/android/logic/BackgroundTaskLogic.kt +++ b/app/src/main/java/io/timelimit/android/logic/BackgroundTaskLogic.kt @@ -149,6 +149,8 @@ class BackgroundTaskLogic(val appLogic: AppLogic) { if (blockedAppPackageName != appLogic.platformIntegration.getLauncherAppPackageName()) { AccessibilityService.instance?.showHomescreen() delay(100) + AccessibilityService.instance?.showHomescreen() + delay(100) } }