Skip to content

Commit a190d66

Browse files
authored
Merge pull request #322 from GuoXiCheng/dev-c
update StrictMode
2 parents 8fceb3d + a5ac9b6 commit a190d66

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- 新增「悬浮窗按钮」用于执行布局检查功能
44
- 新增应用白名单搜索功能
5+
- 新增「严格模式」下可在应用内执行「跳过」
56
- 修复加载的配置文件包含 Unicode 编码时未转换为中文的问题
67
- 修复点击右上角「功能介绍」后菜单未自动关闭的问题
78
- 修复断网后无法使用的问题

app/src/main/java/com/android/skip/data/config/ConfigLoadRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ConfigLoadRepository @Inject constructor() {
102102

103103
val targetNode = if (foundNode != null) {
104104
if (skipText.length != null) {
105-
if (foundNode.text.length <= skipText.length) {
105+
if (foundNode.text != null && foundNode.text.length <= skipText.length) {
106106
foundNode
107107
} else {
108108
null

app/src/main/java/com/android/skip/service/MyAccessibilityService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class MyAccessibilityService : AccessibilityService() {
9292
appPackageName = rootNodePackageName
9393
}
9494

95-
if (!whiteListRepository.isAppInWhiteList(rootNodePackageName) && scanTimes < 50) {
95+
if (!whiteListRepository.isAppInWhiteList(rootNodePackageName) && (isStrict || scanTimes < 50)) {
9696
val that = this
9797
serviceScope.launch {
9898
val targetRect =

0 commit comments

Comments
 (0)