Skip to content

Commit

Permalink
disable turning off acessibility service on update
Browse files Browse the repository at this point in the history
  • Loading branch information
tsynik committed Apr 11, 2024
1 parent 6ffbf2c commit b9756cd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit b9756cd

Please sign in to comment.