From 630fa468c79d44daae4e48f465cbaccdb9e2fe67 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 15 Dec 2014 18:11:58 -0800 Subject: 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 --- src/com/android/dialer/calllog/CallLogFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3