Commit 59106e4f authored by topjohnwu's avatar topjohnwu

Make sure app relaunching works after upgrade

parent d76c266f
...@@ -45,6 +45,7 @@ private suspend fun DownloadService.upgrade(apk: File, id: Int) { ...@@ -45,6 +45,7 @@ private suspend fun DownloadService.upgrade(apk: File, id: Int) {
patch(apk, id) patch(apk, id)
} else { } else {
// Simply relaunch the app // Simply relaunch the app
stopSelf()
relaunchApp(this) relaunchApp(this)
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment