fix: switch auto off
This commit is contained in:
parent
3a88656e21
commit
a1b9f90500
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ class SettingsAddonActivity : AppCompatActivity() {
|
|||
icon = R.drawable.ic_round_dns_24,
|
||||
isChecked = PrefManager.getVal(PrefName.TorrentEnabled),
|
||||
switch = { isChecked, it ->
|
||||
if (isChecked && !torrentAddonManager.isAvailable()) {
|
||||
if (isChecked && !torrentAddonManager.isAvailable(false)) {
|
||||
snackString(getString(R.string.install_torrent_addon))
|
||||
it.settingsButton.isChecked = false
|
||||
PrefManager.setVal(PrefName.TorrentEnabled, false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue