diff options
Diffstat (limited to 'src/com/android/settings/ButtonSettings.java')
-rw-r--r-- | src/com/android/settings/ButtonSettings.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/com/android/settings/ButtonSettings.java b/src/com/android/settings/ButtonSettings.java index 5886a3f..a5a7d35 100644 --- a/src/com/android/settings/ButtonSettings.java +++ b/src/com/android/settings/ButtonSettings.java @@ -78,7 +78,6 @@ public class ButtonSettings extends SettingsPreferenceFragment implements private static final String KEY_NAVIGATION_RECENTS_LONG_PRESS = "navigation_recents_long_press"; private static final String KEY_POWER_END_CALL = "power_end_call"; private static final String KEY_HOME_ANSWER_CALL = "home_answer_call"; - private static final String KEY_BLUETOOTH_INPUT_SETTINGS = "bluetooth_input_settings"; private static final String KEY_VOLUME_MUSIC_CONTROLS = "volbtn_music_controls"; private static final String KEY_VOLUME_CONTROL_RING_STREAM = "volume_keys_control_ring_stream"; @@ -91,7 +90,7 @@ public class ButtonSettings extends SettingsPreferenceFragment implements private static final String CATEGORY_CAMERA = "camera_key"; private static final String CATEGORY_VOLUME = "volume_keys"; private static final String CATEGORY_BACKLIGHT = "key_backlight"; - private static final String CATEGORY_NAVBAR = "navigation_bar"; + private static final String CATEGORY_NAVBAR = "navigation_bar_category"; // Available custom actions to perform on a key press. // Must match values for KEY_HOME_LONG_PRESS_ACTION in: @@ -380,7 +379,9 @@ public class ButtonSettings extends SettingsPreferenceFragment implements CMSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION, 0); mSwapVolumeButtons = (SwitchPreference) prefScreen.findPreference(KEY_SWAP_VOLUME_BUTTONS); - mSwapVolumeButtons.setChecked(swapVolumeKeys > 0); + if (mSwapVolumeButtons != null) { + mSwapVolumeButtons.setChecked(swapVolumeKeys > 0); + } } else { prefScreen.removePreference(volumeCategory); } @@ -412,9 +413,6 @@ public class ButtonSettings extends SettingsPreferenceFragment implements prefScreen.removePreference(backlight); } - Utils.updatePreferenceToSpecificActivityFromMetaDataOrRemove(getActivity(), - getPreferenceScreen(), KEY_BLUETOOTH_INPUT_SETTINGS); - if (mCameraWakeScreen != null) { if (mCameraSleepOnRelease != null && !getResources().getBoolean( com.android.internal.R.bool.config_singleStageCameraKey)) { @@ -468,6 +466,7 @@ public class ButtonSettings extends SettingsPreferenceFragment implements private ListPreference initActionList(String key, int value) { ListPreference list = (ListPreference) getPreferenceScreen().findPreference(key); + if (list == null) return null; list.setValue(Integer.toString(value)); list.setSummary(list.getEntry()); list.setOnPreferenceChangeListener(this); |