From 2478ea44ac57c03a51abee065c60afb5f31efd65 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 7 May 2015 14:30:57 -0700 Subject: Fix crash in recents log when in Talkback mode. Views are null because of how tags are set with the new ViewHolder logic. In the long run, I expect all this logic will be obsolete once we listen to changes on individual ViewHolders. Presumably, at that point, we don't need to deal with all this tag business. Bug: 20521104 Change-Id: Iaf7aff6f576a0a5c097acbd461c7a1d88c932231 --- src/com/android/dialer/calllog/CallLogAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 8e22834e5..e79f6eedc 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -631,7 +631,7 @@ public class CallLogAdapter extends GroupingListAdapter private void handleRowExpanded(View view, boolean forceExpand) { final CallLogListItemViewHolder views = (CallLogListItemViewHolder) view.getTag(); - if (forceExpand && isExpanded(views.rowId)) { + if (views == null || (forceExpand && isExpanded(views.rowId))) { return; } -- cgit v1.2.3