diff options
author | Ta-wei Yen <twyen@google.com> | 2016-03-22 17:34:18 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-03-22 17:34:18 +0000 |
commit | f26b975c3bd7e0f0818949b8d1514da39a5af420 (patch) | |
tree | bc6a35d62426f27ed887125821ce7a257442e801 /src/com/android | |
parent | 25f8efdf613624fdbcc656b3403a6ff1bd28085e (diff) | |
parent | 0790a2abada4a69413a3ed48deab6b7781e8db08 (diff) |
Merge "Hide import number settings in Blocked Management UI" into nyc-dev am: 5e530f2
am: 0790a2a
* commit '0790a2abada4a69413a3ed48deab6b7781e8db08':
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); |