Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void populateColors() {
- if (getResources().getBoolean(R.bool.has_single_notification_led)) return;
- if (getResources().getBoolean(R.bool.has_mixable_dual_notification_led)) {
- mColorPref.setEntries(R.array.entries_mixable_dual_led_colors);
- mColorPref.setEntryValues(R.array.values_mixable_dual_led_colors);
- } else if (getResources().getBoolean(R.bool.has_dual_notification_led)) {
- mColorPref.setEntries(R.array.entries_dual_led_colors);
- mColorPref.setEntryValues(R.array.values_dual_led_colors);
- } else {
- mColorPref.setEntries(R.array.entries_trackball_colors);
- mColorPref.setEntryValues(R.array.pref_trackball_colors_values);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement