|
@@ -25,11 +25,10 @@ import com.xhly.corelib.eventbus.UIEvent
|
25
|
25
|
import com.xhly.corelib.utils.AppUtils
|
26
|
26
|
import com.xhly.corelib.utils.LogShow
|
27
|
27
|
import com.xhly.manageapp.AppAdapter
|
28
|
|
-import com.xhly.manageapp.ManageApplication
|
29
|
28
|
import com.xhly.manageapp.R
|
30
|
29
|
import com.xhly.manageapp.broadcastreceiver.AppInstallReceiver
|
31
|
30
|
import com.xhly.manageapp.databinding.ActivityMainBinding
|
32
|
|
-import com.xhly.manageapp.service.TestService
|
|
31
|
+import com.xhly.manageapp.service.ManageAccessibilityService
|
33
|
32
|
import com.xhly.manageapp.ui.login.activity.LoginActivity
|
34
|
33
|
import com.xhly.websocket.utils.WebSocketUtils
|
35
|
34
|
import java.util.Calendar
|
|
@@ -225,7 +224,7 @@ class MainActivity : BaseActivity<CommonBaseViewModel, ActivityMainBinding>() {
|
225
|
224
|
|
226
|
225
|
fun checkAccessibility(context: Context): Boolean {
|
227
|
226
|
// 判断辅助功能是否开启
|
228
|
|
- if (!isServiceON(this, TestService::class.java.name)) {
|
|
227
|
+ if (!isServiceON(this, ManageAccessibilityService::class.java.name)) {
|
229
|
228
|
// 引导至辅助功能设置页面
|
230
|
229
|
context.startActivity(
|
231
|
230
|
Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)
|