diff options
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/settings/notification/ZenModeScheduleDaysSelection.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/notification/ZenModeScheduleDaysSelection.java b/src/com/android/settings/notification/ZenModeScheduleDaysSelection.java index 3e88046..a0af03f 100644 --- a/src/com/android/settings/notification/ZenModeScheduleDaysSelection.java +++ b/src/com/android/settings/notification/ZenModeScheduleDaysSelection.java @@ -61,8 +61,9 @@ public class ZenModeScheduleDaysSelection extends ScrollView { } mLayout.setOrientation(LinearLayout.VERTICAL); final Calendar c = Calendar.getInstance(); + int i = c.getFirstDayOfWeek() - 1; final LayoutInflater inflater = LayoutInflater.from(context); - for (int i = 0; i < DAYS.length; i++) { + for (int d = 0; d < DAYS.length; d++) { final int day = DAYS[i]; final CheckBox checkBox = (CheckBox) inflater.inflate(R.layout.zen_schedule_rule_day, this, false); @@ -77,6 +78,7 @@ public class ZenModeScheduleDaysSelection extends ScrollView { } }); mLayout.addView(checkBox); + i = ++i % DAYS.length; } } |