mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 07:20:47 -05:00
@@ -31,7 +31,7 @@ class EnvFixDialog : DialogEvent() {
|
||||
lbm.unregisterReceiver(this)
|
||||
}
|
||||
}, IntentFilter(DISMISS))
|
||||
DownloadService(dialog.context) { subject = Magisk(EnvFix) }
|
||||
DownloadService(dialog.context, Magisk(EnvFix))
|
||||
}
|
||||
}
|
||||
.applyButton(MagiskDialog.ButtonType.NEGATIVE) {
|
||||
|
||||
@@ -25,7 +25,7 @@ class ManagerInstallDialog : DialogEvent() {
|
||||
|
||||
applyButton(MagiskDialog.ButtonType.POSITIVE) {
|
||||
titleRes = R.string.install
|
||||
onClick { DownloadService(context) { this.subject = subject } }
|
||||
onClick { DownloadService(context, subject) }
|
||||
}
|
||||
|
||||
if (Info.remote.app.note.isEmpty()) return
|
||||
|
||||
@@ -12,9 +12,10 @@ class ModuleInstallDialog(private val item: Repo) : DialogEvent() {
|
||||
override fun build(dialog: MagiskDialog) {
|
||||
with(dialog) {
|
||||
|
||||
fun download(install: Boolean) = DownloadService(context) {
|
||||
fun download(install: Boolean) {
|
||||
val config = if (install) Action.Flash.Primary else Action.Download
|
||||
subject = Subject.Module(item, config)
|
||||
val subject = Subject.Module(item, config)
|
||||
DownloadService(context, subject)
|
||||
}
|
||||
|
||||
applyTitle(context.getString(R.string.repo_install_title, item.name))
|
||||
|
||||
@@ -47,9 +47,7 @@ class UninstallDialog : DialogEvent() {
|
||||
}
|
||||
|
||||
private fun completeUninstall() {
|
||||
DownloadService(dialog.context) {
|
||||
subject = Subject.Magisk(Action.Uninstall)
|
||||
}
|
||||
DownloadService(dialog.context, Subject.Magisk(Action.Uninstall))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user