Verified Commit ce01c08c authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! TB 41878: [android] Add standalone Tor Bootstrap

TB 41921: Drop redundant arguments to getTorIntegration().setSettings.

All calls to this method passed true for the last two arguments.
parent df62f878
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ class TorControllerGV(
        set(value) {
            getTorSettings()?.let {
                it.quickstart = value
                getTorIntegration().setSettings(it, true, true)
                getTorIntegration().setSettings(it)
            }
        }

@@ -110,7 +110,7 @@ class TorControllerGV(
            getTorSettings()?.let {
                if (!value || it.bridgesSource != BridgeSource.Invalid) {
                    it.bridgesEnabled = value
                    getTorIntegration().setSettings(it, true, true)
                    getTorIntegration().setSettings(it)
                }
            }
        }
@@ -150,7 +150,7 @@ class TorControllerGV(
                    }
                    it.bridgesBuiltinType = bbt
                }
                getTorIntegration().setSettings(it, true, true)
                getTorIntegration().setSettings(it)
            }
        }

@@ -175,7 +175,7 @@ class TorControllerGV(
                val  userProvidedLines: Array<String> = value?.split("\n")?.filter { it.length > 4 }?.toTypedArray() ?: arrayOf<String>()
                it.bridgesSource = BridgeSource.UserProvided
                it.bridgeBridgeStrings = userProvidedLines
                getTorIntegration().setSettings(it, true, true)
                getTorIntegration().setSettings(it)
            }
        }