x1ongzhu 1 سال پیش
والد
کامیت
0e27cc16a6
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/src/main/java/com/example/modifier/service/ModifierService.kt

+ 2 - 2
app/src/main/java/com/example/modifier/service/ModifierService.kt

@@ -697,7 +697,7 @@ class ModifierService : AccessibilityService(), Emitter.Listener {
                     continue
                     continue
                 }
                 }
 
 
-                withTimeoutOrNull(20000) {
+                withTimeoutOrNull(30000) {
                     while (true) {
                     while (true) {
                         try {
                         try {
                             rcsRes = KtorClient.get(RcsNumberApi.Id(id = rcsRes.id))
                             rcsRes = KtorClient.get(RcsNumberApi.Id(id = rcsRes.id))
@@ -768,7 +768,7 @@ class ModifierService : AccessibilityService(), Emitter.Listener {
                     val configured = run a@{
                     val configured = run a@{
                         repeat(2) {
                         repeat(2) {
                             sendBroadcast(intent)
                             sendBroadcast(intent)
-                            val configured = withTimeoutOrNull(30.seconds) {
+                            val configured = withTimeoutOrNull(60.seconds) {
                                 while (true) {
                                 while (true) {
                                     if (rcsConfigureState.value == RcsConfigureState.CONFIGURED) {
                                     if (rcsConfigureState.value == RcsConfigureState.CONFIGURED) {
                                         break
                                         break