Skip to content

Commit

Permalink
Set isInstalling to false when a root error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Aug 4, 2024
1 parent 32d4681 commit 982d3e6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,13 @@ class PatcherViewModel(
rootInstaller.uninstall(packageName)
} catch (_: Exception) {
}
isInstalling = false
}
}
}
} catch(_: Exception) {
} catch(e: Exception) {
Log.e(tag, "Failed to install", e)
app.toast(app.getString(R.string.install_app_fail, e.simpleMessage()))
isInstalling = false
}
}
Expand Down

0 comments on commit 982d3e6

Please sign in to comment.