mirror of
https://codeberg.org/Starfish/Imagepipe.git
synced 2025-10-05 22:52:39 +02:00
fix crash on legacy devices caused by wrong casting of Preference to EditTextPreference
This commit is contained in:
@@ -60,7 +60,7 @@ public class Settings extends PreferenceActivity implements SharedPreferences.On
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void disableAllowedTags(){
|
||||
EditTextPreference editTextPreference = (EditTextPreference) findPreference(ImagepipePreferences.PREF_ALLOWED_TAGS);
|
||||
Preference editTextPreference = (Preference) findPreference(ImagepipePreferences.PREF_ALLOWED_TAGS);
|
||||
editTextPreference.setEnabled(false);
|
||||
SharedPreferences sp= PreferenceManager.getDefaultSharedPreferences(this);
|
||||
Preference p= findPreference(ImagepipePreferences.PREF_ALLOWED_TAGS);
|
||||
|
Reference in New Issue
Block a user