We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c308e7 commit 6f901baCopy full SHA for 6f901ba
app/src/main/java/me/zhanghai/android/textselectionwebsearch/SettingsActivity.java
@@ -43,7 +43,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
43
@Override
44
public void onSharedPreferenceChanged(@NonNull SharedPreferences sharedPreferences,
45
@Nullable String key) {
46
- if (Objects.equals(key, getString(R.string.pref_key_search_engine))) {
+ if (Objects.equals(key, getString(R.string.pref_key_search_engine)) || key == null) {
47
updateCustomSearchEngineUrlFormatPreferenceVisibility();
48
}
49
0 commit comments