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

This commit is contained in:
TreeHugger Robot
2018-04-12 19:33:50 +00:00
committed by Android (Google) Code Review

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();