2525import android .content .Context ;
2626import android .os .Bundle ;
2727import android .os .RemoteException ;
28- import android .os .ServiceManager ;
2928import android .os .SystemProperties ;
3029import android .preference .CheckBoxPreference ;
3130import android .preference .ListPreference ;
3534import android .preference .PreferenceScreen ;
3635import android .provider .Settings ;
3736import android .text .Spannable ;
38- import android .view .IWindowManager ;
3937
4038import com .android .settings .R ;
4139import com .android .settings .SettingsPreferenceFragment ;
@@ -48,7 +46,6 @@ public class UserInterface extends SettingsPreferenceFragment implements OnPrefe
4846
4947 private static final String MISC_SETTINGS = "misc" ;
5048 private static final String PREF_USE_ALT_RESOLVER = "use_alt_resolver" ;
51- private static final String KEY_HARDWARE_KEYS = "hardware_keys" ;
5249 private static final String KEY_RECENTS_RAM_BAR = "recents_ram_bar" ;
5350 private static final String KEY_DUAL_PANE = "dual_pane" ;
5451 private static final String KEY_HIGH_END_GFX = "high_end_gfx" ;
@@ -96,18 +93,6 @@ public void onCreate(Bundle savedInstanceState) {
9693 }
9794 mLcdDensity .setSummary (getResources ().getString (R .string .current_lcd_density ) + currentProperty );
9895
99- // Only show the hardware keys config on a device that does not have a navbar
100- IWindowManager windowManager = IWindowManager .Stub .asInterface (
101- ServiceManager .getService (Context .WINDOW_SERVICE ));
102-
103- final boolean hasNavBarByDefault = getResources ().getBoolean (
104- com .android .internal .R .bool .config_showNavigationBar );
105-
106- if (hasNavBarByDefault ) {
107- // Let's assume they don't have hardware keys
108- mMisc .removePreference (findPreference (KEY_HARDWARE_KEYS ));
109- }
110-
11196 mRamBar = findPreference (KEY_RECENTS_RAM_BAR );
11297 updateRamBar ();
11398
0 commit comments