Settings: Migrate zen event conditions to use calendar name.

And make sure any existing calendar value always appears in the
picker, even before it exists in the calendar provider.

Bug: 17755700
Change-Id: I8aa298a0d5804c288e2596f18c2dc7318f752121
This commit is contained in:
John Spurlock
2015-05-28 22:20:44 -04:00
parent e6f9c110c7
commit bd352af3cf
3 changed files with 19 additions and 17 deletions

View File

@@ -165,7 +165,7 @@ public abstract class ZenRuleNameDialog {
private static RuleInfo defaultNewEvent() {
final EventInfo event = new EventInfo();
event.calendar = EventInfo.ANY_CALENDAR;
event.calendar = null; // any calendar
event.reply = EventInfo.REPLY_ANY_EXCEPT_NO;
final RuleInfo rt = new RuleInfo();
rt.settingsAction = ZenModeEventRuleSettings.ACTION;