Code example for Collection

Methods: remove

0
	public static void addSettingsUpdateListener(Runnable listener) {
		updateListeners.add(listener);
	} 
	 
	public static void removeSettingsUpdateListener(Runnable listener) {
		updateListeners.remove(listener);
	} 
	 
	public static Settings getCurrentSettings() { 
		return currentSettings;
	} 
	 
	private final int turnsBetweenAutoSaves;
	private final int maxNumberOfAutoSaves;
	private final String defaultUserName;
	private final String savedGameDir;
	private final boolean halveResolution;
	 
	public static void updateSettings(Context c) {
		currentSettings = new Settings(currentSettings.turnsBetweenAutoSaves,
				currentSettings.maxNumberOfAutoSaves,