mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 10:47:38 +00:00
Show url dialog only if necessary
This commit is contained in:
parent
e4bcdbd0c4
commit
cf161a5dd9
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user