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
diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java
index ac8da22..9c95d3e 100644
--- a/src/com/android/dialer/calllog/CallLogFragment.java
+++ b/src/com/android/dialer/calllog/CallLogFragment.java
@@ -531,7 +531,7 @@
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) {