summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2014-12-11 14:15:19 +0000
committerBen Murdoch <benm@google.com>2014-12-11 14:15:19 +0000
commit0184f3391b86ce36d74455e3c87d77d32b3c1fc8 (patch)
tree5dc9d27177430010e61a65e4566eec395f291f6a /src
parentfe15d2a0bf7b10a21a53a4e286f6bad5ccbce7d3 (diff)
downloadpackages_apps_Browser-0184f3391b86ce36d74455e3c87d77d32b3c1fc8.zip
packages_apps_Browser-0184f3391b86ce36d74455e3c87d77d32b3c1fc8.tar.gz
packages_apps_Browser-0184f3391b86ce36d74455e3c87d77d32b3c1fc8.tar.bz2
Implement BrowserPreferencePage.isValidFragment.
Bug: 18284779 Change-Id: I0f285e3577ce24784d45bbe35f45179febe27a9d
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/BrowserPreferencesPage.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserPreferencesPage.java b/src/com/android/browser/BrowserPreferencesPage.java
index 6e6da17..323b9b8 100644
--- a/src/com/android/browser/BrowserPreferencesPage.java
+++ b/src/com/android/browser/BrowserPreferencesPage.java
@@ -22,8 +22,14 @@ import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.view.MenuItem;
+import com.android.browser.preferences.AccessibilityPreferencesFragment;
+import com.android.browser.preferences.AdvancedPreferencesFragment;
import com.android.browser.preferences.BandwidthPreferencesFragment;
import com.android.browser.preferences.DebugPreferencesFragment;
+import com.android.browser.preferences.GeneralPreferencesFragment;
+import com.android.browser.preferences.LabPreferencesFragment;
+import com.android.browser.preferences.PrivacySecurityPreferencesFragment;
+import com.android.browser.preferences.WebsiteSettingsFragment;
import java.util.List;
@@ -98,4 +104,16 @@ public class BrowserPreferencesPage extends PreferenceActivity {
return intent;
}
+ @Override
+ protected boolean isValidFragment(String fragmentName) {
+ return AccessibilityPreferencesFragment.class.getName().equals(fragmentName) ||
+ AdvancedPreferencesFragment.class.getName().equals(fragmentName) ||
+ BandwidthPreferencesFragment.class.getName().equals(fragmentName) ||
+ DebugPreferencesFragment.class.getName().equals(fragmentName) ||
+ GeneralPreferencesFragment.class.getName().equals(fragmentName) ||
+ LabPreferencesFragment.class.getName().equals(fragmentName) ||
+ PrivacySecurityPreferencesFragment.class.getName().equals(fragmentName) ||
+ WebsiteSettingsFragment.class.getName().equals(fragmentName);
+
+ }
}