зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1219416 - Display "Search" title when opening search preferences with the magnifying glass. r=margaret
This commit is contained in:
Родитель
5f0c4cfeb2
Коммит
deda3675e6
|
@ -106,6 +106,11 @@ public class GeckoPreferenceFragment extends PreferenceFragment {
|
|||
return getString(R.string.pref_category_vendor);
|
||||
}
|
||||
|
||||
// from the Awesomescreen with the magnifying glass.
|
||||
if (res == R.xml.preferences_search) {
|
||||
return getString(R.string.pref_category_search);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -210,4 +215,4 @@ public class GeckoPreferenceFragment extends PreferenceFragment {
|
|||
Telemetry.stopUISession(TelemetryContract.Session.SETTINGS);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -249,6 +249,8 @@ OnSharedPreferenceChangeListener
|
|||
title = R.string.pref_category_vendor;
|
||||
} else if (res == R.xml.preferences_customize) {
|
||||
title = R.string.pref_category_customize;
|
||||
} else if (res == R.xml.preferences_search) {
|
||||
title = R.string.pref_category_search;
|
||||
}
|
||||
if (title != -1) {
|
||||
updateTitle(title);
|
||||
|
|
Загрузка…
Ссылка в новой задаче