|
|
@ -162,7 +162,9 @@ public class ContactSelectionListFragment extends Fragment
|
|
|
|
public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
|
|
|
|
public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
|
|
|
|
((CursorRecyclerViewAdapter) recyclerView.getAdapter()).changeCursor(data);
|
|
|
|
((CursorRecyclerViewAdapter) recyclerView.getAdapter()).changeCursor(data);
|
|
|
|
emptyText.setText(R.string.contact_selection_group_activity__no_contacts);
|
|
|
|
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.setVisibility(View.VISIBLE);
|
|
|
|
fastScroller.setRecyclerView(recyclerView);
|
|
|
|
fastScroller.setRecyclerView(recyclerView);
|
|
|
|
}
|
|
|
|
}
|
|
|
|