update 优化机型兼容
This commit is contained in:
@@ -153,9 +153,15 @@ class ListenActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (PermissionHelper.isAccessibilitySettingOn()) {
|
if (PermissionHelper.isAccessibilitySettingOn()) {
|
||||||
|
if (FlowPermissionHelper.isBlueCloud()) {
|
||||||
|
sw_accessibility.isChecked = true
|
||||||
|
val intent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)
|
||||||
|
startActivity(intent)
|
||||||
|
} else {
|
||||||
WeworkController.weworkService.disableSelf()
|
WeworkController.weworkService.disableSelf()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,8 +91,13 @@ class SettingsActivity : AppCompatActivity() {
|
|||||||
bt_open_main.setOnClickListener {
|
bt_open_main.setOnClickListener {
|
||||||
freshOpenMain()
|
freshOpenMain()
|
||||||
if (PermissionHelper.isAccessibilitySettingOn()) {
|
if (PermissionHelper.isAccessibilitySettingOn()) {
|
||||||
|
if (FlowPermissionHelper.isBlueCloud()) {
|
||||||
|
val intent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)
|
||||||
|
startActivity(intent)
|
||||||
|
} else {
|
||||||
WeworkController.weworkService.disableSelf()
|
WeworkController.weworkService.disableSelf()
|
||||||
freshOpenMain()
|
freshOpenMain()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (Constant.robotId.isBlank()) {
|
if (Constant.robotId.isBlank()) {
|
||||||
ToastUtils.showLong("请先填写并保存链接号~")
|
ToastUtils.showLong("请先填写并保存链接号~")
|
||||||
|
|||||||
Reference in New Issue
Block a user