summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-05-07 14:30:57 -0700
committerAndrew Lee <anwlee@google.com>2015-05-07 15:06:03 -0700
commit2478ea44ac57c03a51abee065c60afb5f31efd65 (patch)
treecc56464499d808ef754aef6df1c00d793e506b8f
parent432cfa109479782f1c5765a1ad80d332b8781310 (diff)
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
-rw-r--r--src/com/android/dialer/calllog/CallLogAdapter.java2
1 files changed, 1 insertions, 1 deletions
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;
}