Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b771676 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Catch exceptions reading calendar events

Test: none
Change-Id: I3be8d3abc5feead1d940ab86d8edcd770187eca9
Fixes: 70568179
parent 26ae29f1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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();