Skip to content

Commit 8b6e2f0

Browse files
Update mobile/src/main/java/net/activitywatch/android/watcher/WebWatcher.kt
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 5f2b2ef commit 8b6e2f0

File tree

1 file changed

+1
-1
lines changed
  • mobile/src/main/java/net/activitywatch/android/watcher

1 file changed

+1
-1
lines changed

mobile/src/main/java/net/activitywatch/android/watcher/WebWatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class WebWatcher : AccessibilityService() {
112112
return (0 until info.childCount)
113113
.mapNotNull { info.getChild(it) }
114114
.firstNotNullOfOrNull { child ->
115-
findWebView(child).also { child.recycle() }
115+
findWebView(child).also { if (it == null) child.recycle() }
116116
}
117117
}
118118

0 commit comments

Comments
 (0)