Skip to content

Commit

Permalink
update 优化机型兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
gallonyin committed Aug 19, 2023
1 parent 6e1c2b9 commit a1c570b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ class ListenActivity : AppCompatActivity() {
}
} else {
if (PermissionHelper.isAccessibilitySettingOn()) {
WeworkController.weworkService.disableSelf()
if (FlowPermissionHelper.isBlueCloud()) {
sw_accessibility.isChecked = true
val intent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)
startActivity(intent)
} else {
WeworkController.weworkService.disableSelf()
}
}
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,13 @@ class SettingsActivity : AppCompatActivity() {
bt_open_main.setOnClickListener {
freshOpenMain()
if (PermissionHelper.isAccessibilitySettingOn()) {
WeworkController.weworkService.disableSelf()
freshOpenMain()
if (FlowPermissionHelper.isBlueCloud()) {
val intent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)
startActivity(intent)
} else {
WeworkController.weworkService.disableSelf()
freshOpenMain()
}
} else {
if (Constant.robotId.isBlank()) {
ToastUtils.showLong("请先填写并保存链接号~")
Expand Down

0 comments on commit a1c570b

Please sign in to comment.