You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Use LiveData instead of Observable
This commit is contained in:
@@ -70,7 +70,7 @@ class ModuleViewModel : BaseViewModel() {
|
||||
}
|
||||
|
||||
fun downloadPressed(item: OnlineModule?) =
|
||||
if (item != null && isConnected.get()) {
|
||||
if (item != null && Info.isConnected.value == true) {
|
||||
withExternalRW { ModuleInstallDialog(item).publish() }
|
||||
} else {
|
||||
SnackbarEvent(R.string.no_connection).publish()
|
||||
|
||||
Reference in New Issue
Block a user