We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 436dea3 commit 0bf5d69Copy full SHA for 0bf5d69
1 file changed
Reef/src/main/java/dev/pranav/reef/accessibility/BlockerService.kt
@@ -217,8 +217,6 @@ class BlockerService: AccessibilityService() {
217
}
218
219
220
- if (Whitelist.isWhitelisted(pkg)) return
221
-
222
if (event.eventType == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED &&
223
event.contentChangeTypes != AccessibilityEvent.CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION
224
) {
@@ -287,6 +285,8 @@ class BlockerService: AccessibilityService() {
287
285
288
286
private fun handleAppBlockCheck(pkg: String) {
289
if (prefs.getBoolean("focus_mode", false)) {
+ if (Whitelist.isWhitelisted(pkg)) return
+
290
FocusStats.recordBlockEvent(pkg, "focus_mode")
291
performGlobalAction(GLOBAL_ACTION_HOME)
292
showFocusModeNotification(pkg)
0 commit comments