Merge "Catch exceptions reading calendar events" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c5fb960b01
@@ -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