feat: add silent auto-check for app updates on launch
This commit is contained in:
1 parent
bf51a3077b
commit
8a6fa50ce3
1 file changed
+11
@@ -81,6 +81,17 @@ fun MainScreen(
|
||||
if (directMode != DirectModeType.NONE) {
|
||||
currentActiveConfig = StorageManager.readConfigViaDirect(directMode)
|
||||
}
|
||||
|
||||
// Silent auto-check for APK updates in background on app launch
|
||||
coroutineScope.launch {
|
||||
val res = UpdateManager.checkForAppUpdate()
|
||||
res.onSuccess { info ->
|
||||
if (info != null && info.isNewer) {
|
||||
releaseInfo = info
|
||||
showUpdateDialog = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Refresh when Shizuku permission is granted via popup
|
||||
|
||||
Reference in new issue
Block a user