mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 03:12:15 +00:00
Fix: Updating AppSheet state on download finished
This commit is contained in:
parent
3e623eac3b
commit
db5b22f5cf
@ -257,8 +257,8 @@ class AppSheetX() : FullscreenBottomSheetDialogFragment(), Callbacks {
|
||||
}
|
||||
val downloading = status is Cancelable
|
||||
this.downloading = downloading
|
||||
viewModel.state.value = state
|
||||
updateButtons()
|
||||
viewModel.state.value = status
|
||||
if (state is DownloadService.State.Success && isResumed && !rootInstallerEnabled) {
|
||||
withContext(Dispatchers.Default) {
|
||||
AppInstaller.getInstance(context)?.defaultInstaller?.install(state.release.cacheFileName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user