Example usage for android.view AbsSavedState EMPTY_STATE

List of usage examples for android.view AbsSavedState EMPTY_STATE

Introduction

In this page you can find the example usage for android.view AbsSavedState EMPTY_STATE.

Prototype

AbsSavedState EMPTY_STATE

To view the source code for android.view AbsSavedState EMPTY_STATE.

Click Source Link

Usage

From source file:hochschuledarmstadt.photostream_tools.widget.SearchViewDelegate.java

/**
 * Speichert den aktuellen Status der SearchView in ein Parcelable Objekt
 * @return {@link Parcelable}/*from w  ww.ja v a2 s  .c om*/
 */
public Parcelable saveInstanceState() {
    SavedState savedState = new SavedState(AbsSavedState.EMPTY_STATE);
    savedState.setQuery(searchView.getQuery().toString());
    savedState.setFocused(searchView.isFocused());
    savedState.setExpanded(MenuItemCompat.isActionViewExpanded(searchViewMenuItem));
    return savedState;
}