1
0
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:
Starfish
2025-07-13 14:21:53 +02:00
parent e951239559
commit ef45c902d5

View File

@@ -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);