diff options
-rw-r--r-- | src/com/android/dialer/filterednumber/BlockedNumberFragment.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/dialer/filterednumber/BlockedNumberFragment.java b/src/com/android/dialer/filterednumber/BlockedNumberFragment.java index cee7a0d4f..a89ca84c6 100644 --- a/src/com/android/dialer/filterednumber/BlockedNumberFragment.java +++ b/src/com/android/dialer/filterednumber/BlockedNumberFragment.java @@ -168,6 +168,11 @@ public class BlockedNumberFragment extends ListFragment @Override public void onVoicemailStatusFetched(Cursor cursor) { + if (cursor == null) { + hideSetting.setVisibility(View.GONE); + return; + } + final boolean hasVisualVoicemailSource = mVoicemailStatusHelper.getNumberActivityVoicemailSources(cursor) > 0; View hideSetting = getActivity().findViewById(R.id.hide_blocked_calls_setting); |