diff options
author | Andrew Lee <anwlee@google.com> | 2014-05-27 21:26:35 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-27 21:26:35 +0000 |
commit | 7d6a2cc5758909d3ba959f3cc0b8771e444a3c27 (patch) | |
tree | 9a2e7800f817ba1e726f1d84ffd5a06d2d3f6fc9 /src/com/android/dialer/calllog/CallLogFragment.java | |
parent | cdf36015580adf63bd32d2f1cdbf526918de9b88 (diff) | |
parent | 68e771378889a479a80aac29a9ec2136b7ef27b6 (diff) |
Merge "Changing the call log collapse animation for previous item so it happens at the same time as the expansion of another row; this eliminates the need for calling notifyDataSetChanged on expand/collapse." into lmp-preview-dev
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogFragment.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogFragment.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java index 6cf6e4579..de0055085 100644 --- a/src/com/android/dialer/calllog/CallLogFragment.java +++ b/src/com/android/dialer/calllog/CallLogFragment.java @@ -671,13 +671,14 @@ public class CallLogFragment extends ListFragment } /** - * Determines whether a call log entry with a given ID is currently visible in the list view. + * Retrieves the call log view for the specified call Id. If the view is not currently + * visible, returns null. * - * @param callId The call ID to check. - * @return True if the call log entry with the given ID is visible. + * @param callId The call Id. + * @return The call log view. */ @Override - public boolean isItemVisible(long callId) { + public CallLogListItemView getViewForCallId(long callId) { ListView listView = getListView(); int firstPosition = listView.getFirstVisiblePosition(); @@ -689,10 +690,11 @@ public class CallLogFragment extends ListFragment if (view != null) { final CallLogListItemViews viewHolder = (CallLogListItemViews) view.getTag(); if (viewHolder != null && viewHolder.rowId == callId) { - return true; + return (CallLogListItemView)view; } } } - return false; + + return null; } } |