summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/filterednumber/BlockedNumberFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/filterednumber/BlockedNumberFragment.java b/src/com/android/dialer/filterednumber/BlockedNumberFragment.java
index a89ca84c6..223f2ced9 100644
--- a/src/com/android/dialer/filterednumber/BlockedNumberFragment.java
+++ b/src/com/android/dialer/filterednumber/BlockedNumberFragment.java
@@ -168,6 +168,7 @@ public class BlockedNumberFragment extends ListFragment
@Override
public void onVoicemailStatusFetched(Cursor cursor) {
+ final View hideSetting = getActivity().findViewById(R.id.hide_blocked_calls_setting);
if (cursor == null) {
hideSetting.setVisibility(View.GONE);
return;
@@ -175,7 +176,6 @@ public class BlockedNumberFragment extends ListFragment
final boolean hasVisualVoicemailSource =
mVoicemailStatusHelper.getNumberActivityVoicemailSources(cursor) > 0;
- View hideSetting = getActivity().findViewById(R.id.hide_blocked_calls_setting);
if (hasVisualVoicemailSource) {
hideSetting.setVisibility(View.VISIBLE);
} else {