SDK Manager: refresh sources when HTTP/S pref is changed.
Currently you need to use the Refresh button in the remote page after you change the HTTP/s setting and many users think instead they need to close/restart the SDK manager. Change-Id: Ic291d53459624558910bbc417295df5ddc7b037d
This commit is contained in:
@@ -21,8 +21,6 @@ import com.android.prefs.AndroidLocation.AndroidLocationException;
|
|||||||
import com.android.sdklib.ISdkLog;
|
import com.android.sdklib.ISdkLog;
|
||||||
|
|
||||||
import org.eclipse.jface.dialogs.MessageDialog;
|
import org.eclipse.jface.dialogs.MessageDialog;
|
||||||
import org.eclipse.swt.widgets.Display;
|
|
||||||
import org.eclipse.swt.widgets.Shell;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
@@ -248,6 +246,10 @@ public class SettingsController {
|
|||||||
mSettingsPage.retrieveSettings(mProperties);
|
mSettingsPage.retrieveSettings(mProperties);
|
||||||
applySettings();
|
applySettings();
|
||||||
saveSettings();
|
saveSettings();
|
||||||
|
|
||||||
|
// In case the HTTP/HTTPS setting change, force sources to be reloaded
|
||||||
|
// (this only refreshes sources that the user has already tried to open.)
|
||||||
|
mUpdaterData.refreshSources(false /*forceFetching*/);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user