diff options
author | Ta-wei Yen <twyen@google.com> | 2016-03-21 17:34:33 -0700 |
---|---|---|
committer | Ta-wei Yen <twyen@google.com> | 2016-03-22 03:22:30 +0000 |
commit | c88a7090c936ccb300b6d195e219b16bc57b8693 (patch) | |
tree | 72069994e2db6b8bc7fbcd576c0be34c6a06569a /src/com/android | |
parent | f804a91865c7916369e1ab119dfb13d35ca5f033 (diff) |
Hide import number settings in Blocked Management UI
+ When new filtering is possible, we should hide the import number
settings from the blocked numbers management UI.
Bug:27705124
Change-Id: I59bf958540482fe4d1aa620e4a4bc60fdc479778
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); |