Bug 1219416 - Display "Search" title when opening search preferences with the magnifying glass. r=margaret

This commit is contained in:
Christian Schmitz 2015-10-28 21:17:31 +01:00
Родитель 5f0c4cfeb2
Коммит deda3675e6
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

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