Also download to external storage

This commit is contained in:
topjohnwu
2021-01-27 04:09:07 -08:00
parent 2a5f5b1bba
commit eaf4d8064b
6 changed files with 52 additions and 31 deletions
@@ -114,7 +114,7 @@ class HomeViewModel(
fun onDeletePressed() = UninstallDialog().publish()
fun onManagerPressed() = when (state) {
State.LOADED -> ManagerInstallDialog().publish()
State.LOADED -> withExternalRW { ManagerInstallDialog().publish() }
State.LOADING -> SnackbarEvent(R.string.loading).publish()
else -> SnackbarEvent(R.string.no_connection).publish()
}