summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnne Rong <annerong@google.com>2015-09-21 23:25:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-21 23:25:38 +0000
commitf4d50e30fb504d48d8a3ea4949d1db5cbddff964 (patch)
tree415fca8b34dcc0e86402fb02ab6b44cd95ac57f9
parent44b1c13d45c1b74c21a3bcd4121708b2a89d39ba (diff)
parentfe3aab3b0dc0dbd399547cdfab5d30aa82d2d1eb (diff)
Merge "Fix disabled 'Add number' button when there are no blocked numbers." into ub-contactsdialer-a-dev
-rw-r--r--src/com/android/dialer/filterednumber/BlockedNumberFragment.java4
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