diff options
author | Jay Shrauner <shrauner@google.com> | 2014-09-11 16:00:45 -0700 |
---|---|---|
committer | Jay Shrauner <shrauner@google.com> | 2014-09-12 12:19:11 -0700 |
commit | 515bd5d6bd69220eb80f6d58eb5bf9540ef5b50a (patch) | |
tree | b362430d37ddbcccbcd2a30aff8c1ccc29e8d5a3 /src/com/android/dialer/list/ListsFragment.java | |
parent | b0d983f23060c3ef3884a03e52af0c273b1b072a (diff) |
Fix cursor handling in CallLogQueryHandler
Remove dead code and fix potential leak.
Bug:17472228
Change-Id: I0d628b20efa424c049457b57b4a669670d3d51ed
Diffstat (limited to 'src/com/android/dialer/list/ListsFragment.java')
-rw-r--r-- | src/com/android/dialer/list/ListsFragment.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index 5246b5583..39efa5191 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -262,7 +262,7 @@ public class ListsFragment extends AnalyticsFragment implements CallLogQueryHand } @Override - public void onCallsFetched(Cursor cursor) { + public boolean onCallsFetched(Cursor cursor) { mCallLogAdapter.setLoading(false); // Save the date of the most recent call log item @@ -272,6 +272,8 @@ public class ListsFragment extends AnalyticsFragment implements CallLogQueryHand mCallLogAdapter.changeCursor(cursor); mMergedAdapter.notifyDataSetChanged(); + // Return true; took ownership of cursor + return true; } @Override |