From fe3aab3b0dc0dbd399547cdfab5d30aa82d2d1eb Mon Sep 17 00:00:00 2001 From: Anne Rong Date: Mon, 21 Sep 2015 16:18:17 -0700 Subject: Fix disabled 'Add number' button when there are no blocked numbers. Bug: 24273004 Change-Id: Iab9ec3a12f9850bc100a78529b39559ed85256db --- src/com/android/dialer/filterednumber/BlockedNumberFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/com/android/dialer/filterednumber/BlockedNumberFragment.java b/src/com/android/dialer/filterednumber/BlockedNumberFragment.java index 69fba34d4..455982aef 100644 --- a/src/com/android/dialer/filterednumber/BlockedNumberFragment.java +++ b/src/com/android/dialer/filterednumber/BlockedNumberFragment.java @@ -54,8 +54,8 @@ public class BlockedNumberFragment extends ListFragment implements mAdapter = new BlockedNumberAdapter(getContext(), mFilteredNumberAsyncQueryHandler); } setListAdapter(mAdapter); - final Button addNumberBtn = (Button) getActivity().findViewById(R.id.add_number_button); - addNumberBtn.setOnClickListener(this); + getActivity().findViewById(R.id.add_number_button).setOnClickListener(this); + getListView().getEmptyView().findViewById(R.id.add_number_button).setOnClickListener(this); } @Override -- cgit v1.2.3