b/3008692 Stops callback from running after activity finished. Do not merge
The monkey was leaving an activity before an async query could
finish and the callback was hitting a cursor that had been
closed. This adds a check to make sure the activity isn't
finishing into the callback.
Change-Id: Ie0f0f655b19b56a85cbcd6dc1160c17895a4c2e9
diff --git a/src/com/android/calendar/EventInfoActivity.java b/src/com/android/calendar/EventInfoActivity.java
index e79ee02..e420365 100644
--- a/src/com/android/calendar/EventInfoActivity.java
+++ b/src/com/android/calendar/EventInfoActivity.java
@@ -270,6 +270,9 @@
private Runnable mUpdateTZ = new Runnable() {
@Override
public void run() {
+ if (EventInfoActivity.this.isFinishing()) {
+ return;
+ }
updateView();
}
};