Merge "Catch exceptions reading calendar events" into pi-dev am: c5fb960b01

am: e4c1bc47e6

Change-Id: Id922427d386fca83e4c99b78a686b8613718dd37
This commit is contained in:
Julia Reynolds
2018-04-12 14:34:40 -07:00
committed by android-build-merger

View File

@@ -30,6 +30,7 @@ import android.provider.CalendarContract.Instances;
import android.service.notification.ZenModeConfig.EventInfo;
import android.util.ArraySet;
import android.util.Log;
import android.util.Slog;
import java.io.PrintWriter;
import java.util.Date;
@@ -161,6 +162,8 @@ public class CalendarTracker {
}
}
}
} catch (Exception e) {
Slog.w(TAG, "error reading calendar", e);
} finally {
if (cursor != null) {
cursor.close();