summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/calllog/CallLogFragment.java
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-05-27 21:26:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-27 21:26:35 +0000
commit7d6a2cc5758909d3ba959f3cc0b8771e444a3c27 (patch)
tree9a2e7800f817ba1e726f1d84ffd5a06d2d3f6fc9 /src/com/android/dialer/calllog/CallLogFragment.java
parentcdf36015580adf63bd32d2f1cdbf526918de9b88 (diff)
parent68e771378889a479a80aac29a9ec2136b7ef27b6 (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.java14
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;
}
}