Java Code Examples for android.app.Dialog#onSaveInstanceState()

The following examples show how to use android.app.Dialog#onSaveInstanceState() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PreferenceScreen.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
protected Parcelable onSaveInstanceState() {
    final Parcelable superState = super.onSaveInstanceState();
    final Dialog dialog = mDialog;
    if (dialog == null || !dialog.isShowing()) {
        return superState;
    }
    
    final SavedState myState = new SavedState(superState);
    myState.isDialogShowing = true;
    myState.dialogBundle = dialog.onSaveInstanceState();
    return myState;
}
 
Example 2
Source File: MaterialListPreference.java    From talk-android with MIT License 5 votes vote down vote up
@Override
protected Parcelable onSaveInstanceState() {
    final Parcelable superState = super.onSaveInstanceState();
    Dialog dialog = getDialog();
    if (dialog == null || !dialog.isShowing()) {
        return superState;
    }

    final SavedState myState = new SavedState(superState);
    myState.isDialogShowing = true;
    myState.dialogBundle = dialog.onSaveInstanceState();
    return myState;
}
 
Example 3
Source File: MaterialDialogPreference.java    From talk-android with MIT License 5 votes vote down vote up
@Override
protected Parcelable onSaveInstanceState() {
    final Parcelable superState = super.onSaveInstanceState();
    Dialog dialog = getDialog();
    if (dialog == null || !dialog.isShowing()) {
        return superState;
    }

    final SavedState myState = new SavedState(superState);
    myState.isDialogShowing = true;
    myState.dialogBundle = dialog.onSaveInstanceState();
    return myState;
}
 
Example 4
Source File: MaterialEditTextPreference.java    From talk-android with MIT License 5 votes vote down vote up
@Override
protected Parcelable onSaveInstanceState() {
    final Parcelable superState = super.onSaveInstanceState();
    Dialog dialog = getDialog();
    if (dialog == null || !dialog.isShowing()) {
        return superState;
    }

    final SavedState myState = new SavedState(superState);
    myState.isDialogShowing = true;
    myState.dialogBundle = dialog.onSaveInstanceState();
    return myState;
}
 
Example 5
Source File: MaterialMultiSelectListPreference.java    From talk-android with MIT License 5 votes vote down vote up
@Override
protected Parcelable onSaveInstanceState() {
    final Parcelable superState = super.onSaveInstanceState();
    Dialog dialog = getDialog();
    if (dialog == null || !dialog.isShowing()) {
        return superState;
    }

    final SavedState myState = new SavedState(superState);
    myState.isDialogShowing = true;
    myState.dialogBundle = dialog.onSaveInstanceState();
    return myState;
}
 
Example 6
Source File: MaterialEditTextPreference.java    From 920-text-editor-v2 with Apache License 2.0 5 votes vote down vote up
@Override
protected Parcelable onSaveInstanceState() {
    final Parcelable superState = super.onSaveInstanceState();
    Dialog dialog = getDialog();
    if (dialog == null || !dialog.isShowing()) {
        return superState;
    }

    final MaterialEditTextPreference.SavedState myState = new MaterialEditTextPreference.SavedState(superState);
    myState.isDialogShowing = true;
    myState.dialogBundle = dialog.onSaveInstanceState();
    return myState;
}
 
Example 7
Source File: PreferenceScreen.java    From ticdesign with Apache License 2.0 5 votes vote down vote up
@Override
protected Parcelable onSaveInstanceState() {
    final Parcelable superState = super.onSaveInstanceState();
    final Dialog dialog = mDialog;
    if (dialog == null || !dialog.isShowing()) {
        return superState;
    }

    final SavedState myState = new SavedState(superState);
    myState.isDialogShowing = true;
    myState.dialogBundle = dialog.onSaveInstanceState();
    return myState;
}