Merge "Catch exceptions reading calendar events" into pi-dev am: c5fb960b01
am: e4c1bc47e6
Change-Id: Id922427d386fca83e4c99b78a686b8613718dd37
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user