Skip to content

Commit 0bf5d69

Browse files
committed
fix: ignore whitelist for routine limits
Signed-off-by: invokevirtual <purwarpranav80@gmail.com>
1 parent 436dea3 commit 0bf5d69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Reef/src/main/java/dev/pranav/reef/accessibility/BlockerService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ class BlockerService: AccessibilityService() {
217217
}
218218
}
219219

220-
if (Whitelist.isWhitelisted(pkg)) return
221-
222220
if (event.eventType == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED &&
223221
event.contentChangeTypes != AccessibilityEvent.CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION
224222
) {
@@ -287,6 +285,8 @@ class BlockerService: AccessibilityService() {
287285

288286
private fun handleAppBlockCheck(pkg: String) {
289287
if (prefs.getBoolean("focus_mode", false)) {
288+
if (Whitelist.isWhitelisted(pkg)) return
289+
290290
FocusStats.recordBlockEvent(pkg, "focus_mode")
291291
performGlobalAction(GLOBAL_ACTION_HOME)
292292
showFocusModeNotification(pkg)

0 commit comments

Comments
 (0)