Merge "Remove 'until next alarm'." into nyc-mr2-dev

This commit is contained in:
Julia Reynolds
2016-11-15 14:06:35 +00:00
committed by Android (Google) Code Review

View File

@@ -544,8 +544,9 @@ public class ZenModePanel extends LinearLayout {
setToMidnight(nextAlarm);
if (weekRange.compareTo(nextAlarm) >= 0) {
return ZenModeConfig.toNextAlarmCondition(mContext, now,
nextAlarmMs, ActivityManager.getCurrentUser());
return ZenModeConfig.toTimeCondition(mContext, nextAlarmMs,
Math.round((nextAlarmMs - now) / (float) MINUTES_MS),
ActivityManager.getCurrentUser(), true);
}
}
return null;