File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
app/src/main/java/me/zhanghai/android/textselectionwebsearch Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111import androidx .annotation .Nullable ;
1212import androidx .annotation .StyleRes ;
1313
14+ @ SuppressWarnings ("deprecation" )
1415public class EditTextPreferenceCompat extends EditTextPreference {
1516
1617 private boolean mTextSetCompat ;
Original file line number Diff line number Diff line change 2121public class SettingsActivity extends PreferenceActivity
2222 implements SharedPreferences .OnSharedPreferenceChangeListener {
2323
24- @ NonNull
2524 private Preference mCustomSearchEngineUrlFormatPreference ;
2625
2726 @ Override
@@ -43,7 +42,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
4342
4443 @ Override
4544 public void onSharedPreferenceChanged (@ NonNull SharedPreferences sharedPreferences ,
46- @ NonNull String key ) {
45+ @ Nullable String key ) {
4746 if (Objects .equals (key , getString (R .string .pref_key_search_engine ))) {
4847 updateCustomSearchEngineUrlFormatPreferenceVisibility ();
4948 }
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ private SharedPreferences getSharedPreferences() {
141141 }
142142
143143 @ NonNull
144+ @ SuppressWarnings ("deprecation" )
144145 private static SharedPreferences getSharedPreferences (@ NonNull Context context ) {
145146 return PreferenceManager .getDefaultSharedPreferences (context );
146147 }
You can’t perform that action at this time.
0 commit comments