Merge "Catch exceptions reading calendar events" into pi-dev

am: c5fb960b01

Change-Id: Iea9f7ea6add748b8ac89994f56ed80e6dd5c8826
This commit is contained in:
Julia Reynolds
2018-04-12 14:10:08 -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();