From 515bd5d6bd69220eb80f6d58eb5bf9540ef5b50a Mon Sep 17 00:00:00 2001 From: Jay Shrauner Date: Thu, 11 Sep 2014 16:00:45 -0700 Subject: Fix cursor handling in CallLogQueryHandler Remove dead code and fix potential leak. Bug:17472228 Change-Id: I0d628b20efa424c049457b57b4a669670d3d51ed --- src/com/android/dialer/calllog/CallLogActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/android/dialer/calllog/CallLogActivity.java') diff --git a/src/com/android/dialer/calllog/CallLogActivity.java b/src/com/android/dialer/calllog/CallLogActivity.java index 8e5622c54..036241c3f 100644 --- a/src/com/android/dialer/calllog/CallLogActivity.java +++ b/src/com/android/dialer/calllog/CallLogActivity.java @@ -234,7 +234,8 @@ public class CallLogActivity extends AnalyticsActivity implements CallLogQueryHa } @Override - public void onCallsFetched(Cursor statusCursor) { - // Do nothing. Implemented to satisfy CallLogQueryHandler.Listener. + public boolean onCallsFetched(Cursor statusCursor) { + // Return false; did not take ownership of cursor + return false; } } -- cgit v1.2.3