Skip to main content
Sign in
Snippets Groups Projects
Commit 94b3879c authored by clairehurst's avatar clairehurst Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 42247: Android helpers for the TorProvider

Moved setSettings and TorLegacyAndroidSettings.setMigrated() into a new
if block in onPostExecute() from doInBackground().
parent 242efaea
No related branches found
No related tags found
1 merge request!980Bug 42512: Rebased alpha onto Firefox 115.10.0esr
......@@ -175,8 +175,6 @@ public class TorIntegrationAndroid implements BundleEventListener {
TorSettings settings;
if (TorLegacyAndroidSettings.unmigrated()) {
settings = TorLegacyAndroidSettings.loadTorSettings();
setSettings(settings, true, true);
TorLegacyAndroidSettings.setMigrated();
} else {
GeckoBundle bundle = message.getBundle("settings");
settings = new TorSettings(bundle);
......@@ -187,6 +185,10 @@ public class TorIntegrationAndroid implements BundleEventListener {
@Override
protected void onPostExecute(TorSettings torSettings) {
mSettings = torSettings;
if (TorLegacyAndroidSettings.unmigrated()) {
setSettings(mSettings, true, true);
TorLegacyAndroidSettings.setMigrated();
}
}
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment