diff --git a/res/layout/contact_selection_list_fragment.xml b/res/layout/contact_selection_list_fragment.xml index e212d6a3ed..53a63e1bfb 100644 --- a/res/layout/contact_selection_list_fragment.xml +++ b/res/layout/contact_selection_list_fragment.xml @@ -12,7 +12,8 @@ + android:layout_height="match_parent" + android:scrollbars="vertical" /> + android:layout_height="match_parent" + android:scrollbars="vertical" /> loader, Cursor data) { ((CursorRecyclerViewAdapter) recyclerView.getAdapter()).changeCursor(data); emptyText.setText(R.string.contact_selection_group_activity__no_contacts); - if (recyclerView.getAdapter().getItemCount() > 20) { + boolean useFastScroller = (recyclerView.getAdapter().getItemCount() > 20); + recyclerView.setVerticalScrollBarEnabled(!useFastScroller); + if (useFastScroller) { fastScroller.setVisibility(View.VISIBLE); fastScroller.setRecyclerView(recyclerView); }