Bug 1379793 - Only allow pre header as title. r?jwu
MozReview-Commit-ID: 294jTWWyL69
--- a/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferenceFragment.java
+++ b/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferenceFragment.java
@@ -103,24 +103,16 @@ public class GeckoPreferenceFragment ext
* This method sets the title that you see on non-multi-pane devices.
*/
private String getTitle() {
final int res = getResource();
if (res == R.xml.preferences) {
return getString(R.string.settings_title);
}
- if (res == R.xml.preferences_general) {
- return getString(R.string.pref_category_general);
- }
-
- if (res == R.xml.preferences_home) {
- return getString((R.string.pref_category_home));
- }
-
// We can launch this category from the Data Reporting notification.
if (res == R.xml.preferences_privacy) {
return getString(R.string.pref_category_privacy_short);
}
// We can launch this category from the the magnifying glass in the quick search bar.
if (res == R.xml.preferences_search) {
return getString(R.string.pref_category_search);