diff options
author | Ta-wei Yen <twyen@google.com> | 2016-03-22 17:30:34 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-03-22 17:30:34 +0000 |
commit | 0790a2abada4a69413a3ed48deab6b7781e8db08 (patch) | |
tree | d6c88132750d2de3f847c8dd9987e0f1528da2d7 /src/com/android | |
parent | 6dd61510f2c019a8c662257e368568bb93e9d9e0 (diff) | |
parent | 5e530f2d469cae13347a666fd9fe9d214d9e30b4 (diff) |
Merge "Hide import number settings in Blocked Management UI" into nyc-dev
am: 5e530f2
* commit '5e530f2d469cae13347a666fd9fe9d214d9e30b4':
Hide import number settings in Blocked Management UI
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/dialer/filterednumber/BlockedNumbersFragment.java | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/com/android/dialer/filterednumber/BlockedNumbersFragment.java b/src/com/android/dialer/filterednumber/BlockedNumbersFragment.java index 38615cce8..87ba8bef6 100644 --- a/src/com/android/dialer/filterednumber/BlockedNumbersFragment.java +++ b/src/com/android/dialer/filterednumber/BlockedNumbersFragment.java @@ -127,16 +127,21 @@ public class BlockedNumbersFragment extends ListFragment getListView().findViewById(R.id.add_number_linear_layout).setVisibility(View.GONE); getListView().findViewById(R.id.add_number_linear_layout).setOnClickListener(null); mBlockedNumberListDivider.setVisibility(View.INVISIBLE); - } - FilteredNumbersUtil.checkForSendToVoicemailContact( - getActivity(), new CheckForSendToVoicemailContactListener() { - @Override - public void onComplete(boolean hasSendToVoicemailContact) { - final int visibility = hasSendToVoicemailContact ? View.VISIBLE : View.GONE; - mImportSettings.setVisibility(visibility); - } - }); + mImportSettings.setSystemUiVisibility(View.GONE); + getListView().findViewById(R.id.import_button).setOnClickListener(null); + getListView().findViewById(R.id.view_numbers_button).setOnClickListener(null); + } else { + FilteredNumbersUtil.checkForSendToVoicemailContact( + getActivity(), new CheckForSendToVoicemailContactListener() { + @Override + public void onComplete(boolean hasSendToVoicemailContact) { + final int visibility = + hasSendToVoicemailContact ? View.VISIBLE : View.GONE; + mImportSettings.setVisibility(visibility); + } + }); + } if (FilteredNumbersUtil.hasRecentEmergencyCall(getContext())) { mBlockedNumbersDisabledForEmergency.setVisibility(View.VISIBLE); |