Fix blocking home screen with the accessibility service enabled

This commit is contained in:
Jonas L 2019-04-15 00:00:00 +00:00
parent d3403b6866
commit 5128e3587e
4 changed files with 13 additions and 2 deletions

View file

@ -146,8 +146,10 @@ class BackgroundTaskLogic(val appLogic: AppLogic) {
appLogic.platformIntegration.setShowBlockingOverlay(true)
if (appLogic.platformIntegration.isAccessibilityServiceEnabled()) {
AccessibilityService.instance?.showHomescreen()
delay(100)
if (blockedAppPackageName != appLogic.platformIntegration.getLauncherAppPackageName()) {
AccessibilityService.instance?.showHomescreen()
delay(100)
}
}
appLogic.platformIntegration.showAppLockScreen(blockedAppPackageName, blockedAppActivityName)