Loading src/com/android/contacts/activities/ContactSelectionActivity.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -153,8 +153,10 @@ public class ContactSelectionActivity extends ContactsActivity } } private void prepareSearchViewAndActionBar() { private void prepareSearchViewAndActionBar() { // Postal address picker doesn't support search, so just show "HomeAsUp" button and title. // Postal address pickers (and legacy pickers) don't support search, so just show if (mRequest.getActionCode() == ContactsRequest.ACTION_PICK_POSTAL) { // "HomeAsUp" button and title. if (mRequest.getActionCode() == ContactsRequest.ACTION_PICK_POSTAL || mRequest.isLegacyCompatibilityMode()) { findViewById(R.id.search_view).setVisibility(View.GONE); findViewById(R.id.search_view).setVisibility(View.GONE); final ActionBar actionBar = getActionBar(); final ActionBar actionBar = getActionBar(); if (actionBar != null) { if (actionBar != null) { Loading src/com/android/contacts/list/PhoneNumberPickerFragment.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -70,7 +70,6 @@ public class PhoneNumberPickerFragment extends ContactEntryListFragment<ContactE public PhoneNumberPickerFragment() { public PhoneNumberPickerFragment() { setQuickContactEnabled(false); setQuickContactEnabled(false); setPhotoLoaderEnabled(true); setPhotoLoaderEnabled(true); setVisibleScrollbarEnabled(true); setSectionHeaderDisplayEnabled(true); setSectionHeaderDisplayEnabled(true); setDirectorySearchMode(DirectoryListLoader.SEARCH_MODE_DATA_SHORTCUT); setDirectorySearchMode(DirectoryListLoader.SEARCH_MODE_DATA_SHORTCUT); Loading @@ -93,6 +92,8 @@ public class PhoneNumberPickerFragment extends ContactEntryListFragment<ContactE mAccountFilterHeader = getView().findViewById(R.id.account_filter_header_container); mAccountFilterHeader = getView().findViewById(R.id.account_filter_header_container); mAccountFilterHeader.setOnClickListener(mFilterHeaderClickListener); mAccountFilterHeader.setOnClickListener(mFilterHeaderClickListener); updateFilterHeaderView(); updateFilterHeaderView(); setVisibleScrollbarEnabled(!isLegacyCompatibilityMode()); } } @Override @Override Loading Loading
src/com/android/contacts/activities/ContactSelectionActivity.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -153,8 +153,10 @@ public class ContactSelectionActivity extends ContactsActivity } } private void prepareSearchViewAndActionBar() { private void prepareSearchViewAndActionBar() { // Postal address picker doesn't support search, so just show "HomeAsUp" button and title. // Postal address pickers (and legacy pickers) don't support search, so just show if (mRequest.getActionCode() == ContactsRequest.ACTION_PICK_POSTAL) { // "HomeAsUp" button and title. if (mRequest.getActionCode() == ContactsRequest.ACTION_PICK_POSTAL || mRequest.isLegacyCompatibilityMode()) { findViewById(R.id.search_view).setVisibility(View.GONE); findViewById(R.id.search_view).setVisibility(View.GONE); final ActionBar actionBar = getActionBar(); final ActionBar actionBar = getActionBar(); if (actionBar != null) { if (actionBar != null) { Loading
src/com/android/contacts/list/PhoneNumberPickerFragment.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -70,7 +70,6 @@ public class PhoneNumberPickerFragment extends ContactEntryListFragment<ContactE public PhoneNumberPickerFragment() { public PhoneNumberPickerFragment() { setQuickContactEnabled(false); setQuickContactEnabled(false); setPhotoLoaderEnabled(true); setPhotoLoaderEnabled(true); setVisibleScrollbarEnabled(true); setSectionHeaderDisplayEnabled(true); setSectionHeaderDisplayEnabled(true); setDirectorySearchMode(DirectoryListLoader.SEARCH_MODE_DATA_SHORTCUT); setDirectorySearchMode(DirectoryListLoader.SEARCH_MODE_DATA_SHORTCUT); Loading @@ -93,6 +92,8 @@ public class PhoneNumberPickerFragment extends ContactEntryListFragment<ContactE mAccountFilterHeader = getView().findViewById(R.id.account_filter_header_container); mAccountFilterHeader = getView().findViewById(R.id.account_filter_header_container); mAccountFilterHeader.setOnClickListener(mFilterHeaderClickListener); mAccountFilterHeader.setOnClickListener(mFilterHeaderClickListener); updateFilterHeaderView(); updateFilterHeaderView(); setVisibleScrollbarEnabled(!isLegacyCompatibilityMode()); } } @Override @Override Loading