mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Remove unused code in settingsFragment
This commit is contained in:
		
							parent
							
								
									fe470d64a9
								
							
						
					
					
						commit
						b08a0a3964
					
				
					 1 changed files with 2 additions and 16 deletions
				
			
		|  | @ -19,23 +19,9 @@ public class SettingsFragment extends PreferenceFragment { | |||
| 
 | ||||
|         // Update spinner to show selected value as summary | ||||
|         ListPreference licensePreference = (ListPreference) findPreference(Prefs.DEFAULT_LICENSE); | ||||
|         // WARNING: ORDERING NEEDS TO MATCH FOR THE LICENSE NAMES AND DISPLAY VALUES | ||||
|         licensePreference.setEntries(new String[]{ | ||||
|                 getString(R.string.license_name_cc0), | ||||
|                 getString(R.string.license_name_cc_by_3_0), | ||||
|                 getString(R.string.license_name_cc_by_4_0), | ||||
|                 getString(R.string.license_name_cc_by_sa_3_0), | ||||
|                 getString(R.string.license_name_cc_by_sa_4_0) | ||||
|         }); | ||||
|         licensePreference.setEntryValues(new String[]{ | ||||
|                 Prefs.Licenses.CC0, | ||||
|                 Prefs.Licenses.CC_BY_3, | ||||
|                 Prefs.Licenses.CC_BY_4, | ||||
|                 Prefs.Licenses.CC_BY_SA_3, | ||||
|                 Prefs.Licenses.CC_BY_SA_4 | ||||
|         }); | ||||
| 
 | ||||
|         licensePreference.setSummary(getString(Utils.licenseNameFor(licensePreference.getValue()))); | ||||
| 
 | ||||
|         // Keep summary updated when changing value | ||||
|         licensePreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() { | ||||
|             @Override | ||||
|             public boolean onPreferenceChange(Preference preference, Object newValue) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Adam Jones
						Adam Jones