Make sure app relaunching works after upgrade

This commit is contained in:
topjohnwu 2020-08-23 03:47:05 -07:00
parent d76c266fbc
commit 59106e4f52

View File

@ -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 {