/** * Determines whether the simplified settings UI should be shown. This is true if this is forced * via {@link #ALWAYS_SIMPLE_PREFS}, or the device doesn't have newer APIs like {@link * PreferenceFragment}, or the device doesn't have an extra-large screen. In these cases, a * single-pane "simplified" settings UI should be shown. */ private static boolean isSimplePreferences(Context context) { return SettingsActivity.ALWAYS_SIMPLE_PREFS || Build.VERSION_CODES.HONEYCOMB > Build.VERSION.SDK_INT || !SettingsActivity.isXLargeTablet(context); }
/** {@inheritDoc} */ @Override public boolean onIsMultiPane() { return SettingsActivity.isXLargeTablet(this) && !SettingsActivity.isSimplePreferences(this); }