From b9756cd7840b013d03f8f6517c75383644246cde Mon Sep 17 00:00:00 2001
From: nikk gitanes <tsynik@gmail.com>
Date: Fri, 12 Apr 2024 02:25:16 +0300
Subject: [PATCH] disable turning off acessibility service on update

---
 .../ui/fragments/main/update/server/UpdaterServer.kt      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/src/main/java/ru/yourok/torrserve/ui/fragments/main/update/server/UpdaterServer.kt b/app/src/main/java/ru/yourok/torrserve/ui/fragments/main/update/server/UpdaterServer.kt
index 38bed4ed..06006e8f 100644
--- a/app/src/main/java/ru/yourok/torrserve/ui/fragments/main/update/server/UpdaterServer.kt
+++ b/app/src/main/java/ru/yourok/torrserve/ui/fragments/main/update/server/UpdaterServer.kt
@@ -46,8 +46,8 @@ object UpdaterServer {
             val http = Http(Uri.parse(url))
             http.connect()
             if (TorrService.isLocal() && Api.echo().isNotEmpty()) {
-                if (Accessibility.isEnabledService(App.context))
-                    Accessibility.enableService(App.context, false)
+//                if (Accessibility.isEnabledService(App.context))
+//                    Accessibility.enableService(App.context, false)
                 TorrService.stop()
                 ServerFile().stop()
             }
@@ -95,8 +95,8 @@ object UpdaterServer {
 
     fun updateFromFile(filePath: String) {
         if (TorrService.isLocal() && Api.echo().isNotEmpty()) {
-            if (Accessibility.isEnabledService(App.context))
-                Accessibility.enableService(App.context, false)
+//            if (Accessibility.isEnabledService(App.context))
+//                Accessibility.enableService(App.context, false)
             TorrService.stop()
             ServerFile().stop()
         }