diff options
author | Anne Rong <annerong@google.com> | 2015-09-21 16:18:17 -0700 |
---|---|---|
committer | Anne Rong <annerong@google.com> | 2015-09-21 16:18:17 -0700 |
commit | fe3aab3b0dc0dbd399547cdfab5d30aa82d2d1eb (patch) | |
tree | 83e8a843864d5d5be4407ed6d1cc5cca838ea87d | |
parent | 8dda5a08ea2b95b1c38b706366a963dcbf7907e2 (diff) |
Fix disabled 'Add number' button when there are no blocked numbers.
Bug: 24273004
Change-Id: Iab9ec3a12f9850bc100a78529b39559ed85256db
-rw-r--r-- | src/com/android/dialer/filterednumber/BlockedNumberFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 |