summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-12-15 18:11:58 -0800
committerYorke Lee <yorkelee@google.com>2014-12-15 18:11:58 -0800
commit630fa468c79d44daae4e48f465cbaccdb9e2fe67 (patch)
tree351e91ca59b01edcad676a18e0b71ee86b94d3ae
parente23b42bdfffcd959e184474ecd92a007c3d42ac8 (diff)
Fix ClassCastException in CallLogFragment
Use listview instead of root view as parent when inflating footer view so that it is always inflated with AbsListView.LayoutParams Bug: 18762303 Change-Id: If9f5a38017d07d35962881750e2b403aa95287cb
-rw-r--r--src/com/android/dialer/calllog/CallLogFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java
index ac8da22f4..9c95d3ec8 100644
--- a/src/com/android/dialer/calllog/CallLogFragment.java
+++ b/src/com/android/dialer/calllog/CallLogFragment.java
@@ -531,7 +531,7 @@ public class CallLogFragment extends ListFragment
if (mFooterView == null) {
mFooterView = getActivity().getLayoutInflater().inflate(
- R.layout.recents_list_footer, (ViewGroup) getView(), false);
+ R.layout.recents_list_footer, getListView(), false);
mFooterView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {