Skip to content

Commit

Permalink
Cleanup BasePreferenceFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
italankin committed Jun 5, 2022
1 parent 2366b6d commit cf61d03
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@

public abstract class BasePreferenceFragment extends PreferenceFragmentCompat implements FragmentResultSender {

@SuppressWarnings("unchecked")
protected <T extends Preference> T findPreference(@StringRes int key) {
return (T) findPreference(getString(key));
return findPreference(getString(key));
}

@SuppressWarnings("unchecked")
protected <T extends Preference> T findPreference(Preferences.Pref<?> pref) {
return (T) findPreference(pref.key());
return findPreference(pref.key());
}

@Override
Expand Down

0 comments on commit cf61d03

Please sign in to comment.