summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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