Example usage for android.app SearchManager CURSOR_EXTRA_KEY_IN_PROGRESS

List of usage examples for android.app SearchManager CURSOR_EXTRA_KEY_IN_PROGRESS

Introduction

In this page you can find the example usage for android.app SearchManager CURSOR_EXTRA_KEY_IN_PROGRESS.

Prototype

String CURSOR_EXTRA_KEY_IN_PROGRESS

To view the source code for android.app SearchManager CURSOR_EXTRA_KEY_IN_PROGRESS.

Click Source Link

Document

Boolean extra data key for a suggestion provider to return in Cursor#getExtras to indicate that the search is not complete yet.

Usage

From source file:android.support.v7.widget.SuggestionsAdapter.java

private void updateSpinnerState(Cursor cursor) {
    Bundle extras = cursor != null ? cursor.getExtras() : null;
    if (DBG) {/*from   w w  w  .j a v  a2 s .c om*/
        Log.d(LOG_TAG, "updateSpinnerState - extra = "
                + (extras != null ? extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS) : null));
    }
    // Check if the Cursor indicates that the query is not complete and show the spinner
    if (extras != null && extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS)) {
        return;
    }
    // If cursor is null or is done, stop the spinner
}

From source file:cm.aptoide.com.actionbarsherlock.widget.SuggestionsAdapter.java

private void updateSpinnerState(Cursor cursor) {
    Bundle extras = cursor != null ? cursor.getExtras() : null;
    if (DBG) {/*  www .j a v  a2  s  .  c  o  m*/
        Log.d(LOG_TAG, "updateSpinnerState - extra = "
                + (extras != null ? extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS) : null));
    }
    // Check if the Cursor indicates that the query is not complete and show the spinner
    if (extras != null && extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS)) {
        // mSearchView.getWindow().getDecorView().post(mStartSpinnerRunnable); // TODO:
        return;
    }
    // If cursor is null or is done, stop the spinner
    // mSearchView.getWindow().getDecorView().post(mStopSpinnerRunnable); // TODO:
}

From source file:com.tandong.sa.sherlock.widget.SuggestionsAdapter.java

private void updateSpinnerState(Cursor cursor) {
    Bundle extras = cursor != null ? cursor.getExtras() : null;
    if (DBG) {/*w w  w.j  a  v  a2 s.  c  om*/
        Log.d(LOG_TAG, "updateSpinnerState - extra = "
                + (extras != null ? extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS) : null));
    }
    // Check if the Cursor indicates that the query is not complete and show
    // the spinner
    if (extras != null && extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS)) {
        // mSearchView.getWindow().getDecorView().post(mStartSpinnerRunnable);
        // // TODO:
        return;
    }
    // If cursor is null or is done, stop the spinner
    // mSearchView.getWindow().getDecorView().post(mStopSpinnerRunnable); //
    // TODO:
}