Advertisement
techmik

Untitled

Aug 30th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. private void populateColors() {
  2. if (getResources().getBoolean(R.bool.has_single_notification_led)) return;
  3. else if (getResources().getBoolean(R.bool.has_mixable_dual_notification_led)) {
  4. mColorPref.setEntries(R.array.entries_mixable_dual_led_colors);
  5. mColorPref.setEntryValues(R.array.values_mixable_dual_led_colors);
  6. } else if (getResources().getBoolean(R.bool.has_dual_notification_led)) {
  7. mColorPref.setEntries(R.array.entries_dual_led_colors);
  8. mColorPref.setEntryValues(R.array.values_dual_led_colors);
  9. } else {
  10. mColorPref.setEntries(R.array.entries_trackball_colors);
  11. mColorPref.setEntryValues(R.array.pref_trackball_colors_values);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement