am 8e3442f1: Merge change Ic291d534 into eclair-sdk
Merge commit '8e3442f1b0fc19c8213978d4e7ac005774462297' into eclair * commit '8e3442f1b0fc19c8213978d4e7ac005774462297': SDK Manager: refresh sources when HTTP/S pref is changed.
This commit is contained in:
@@ -21,8 +21,6 @@ import com.android.prefs.AndroidLocation.AndroidLocationException;
|
||||
import com.android.sdklib.ISdkLog;
|
||||
|
||||
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.FileInputStream;
|
||||
@@ -248,6 +246,10 @@ public class SettingsController {
|
||||
mSettingsPage.retrieveSettings(mProperties);
|
||||
applySettings();
|
||||
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