Example usage for android.widget CursorAdapter swapCursor

List of usage examples for android.widget CursorAdapter swapCursor

Introduction

In this page you can find the example usage for android.widget CursorAdapter swapCursor.

Prototype

public Cursor swapCursor(Cursor newCursor) 

Source Link

Document

Swap in a new Cursor, returning the old Cursor.

Usage

From source file:com.ultramegasoft.flavordex2.dialog.AppImportDialog.java

@Override
public void onLoaderReset(@NonNull Loader<Cursor> loader) {
    final CursorAdapter adapter = (CursorAdapter) getListAdapter();
    if (adapter != null) {
        adapter.swapCursor(null);
    }/*from  w  ww  .  ja  v  a  2s  .  c om*/
}