Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Preference Screens */
- mNotificationScreen = (PreferenceScreen) prefSet.findPreference(NOTIFICATION_SCREEN);
- mTrackballScreen = (PreferenceScreen) prefSet.findPreference(NOTIFICATION_TRACKBALL);
- mExtrasScreen = (PreferenceScreen) prefSet.findPreference(EXTRAS_SCREEN);
- boolean hasSingleLed = getResources().getBoolean(R.bool.has_single_notification_led);
- boolean hasDualLed = (getResources().getBoolean(R.bool.has_dual_notification_led)
- || getResources().getBoolean(R.bool.has_mixable_dual_notification_led));
- if (!getResources().getBoolean(R.bool.has_rgb_notification_led) && !hasDualLed && !hasSingleLed) {
- ((PreferenceCategory) prefSet.findPreference(GENERAL_CATEGORY))
- .removePreference(mTrackballScreen);
- }
- i am trying to add right below it this... trying to remove the whole "Flash color" as an option to press:
- if (getResources().getBoolean(R.bool.has_single_notification_led)) {
- ((PreferenceCategory) prefSet.findPreference(xxxxxx_CATEGORY))
- .removePreference(mxxxxxx);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement