mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-22 17:57:44 +00:00
Show url dialog only if necessary
This commit is contained in:
@@ -110,7 +110,7 @@ class SettingsViewModel(
|
||||
|
||||
private fun openUrlIfNecessary(view: View) {
|
||||
UpdateChannelUrl.refresh()
|
||||
if (UpdateChannelUrl.value.isBlank()) {
|
||||
if (UpdateChannelUrl.isEnabled && UpdateChannelUrl.value.isBlank()) {
|
||||
UpdateChannelUrl.onPressed(view, this@SettingsViewModel)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user