Code example for ListFragment

Methods: onSaveInstanceState

0
    @Override 
    public void onSaveInstanceState(Bundle outState) {
        if (outState.isEmpty()) {
            outState.putBoolean("bug_19917_fix", true);
        } 
        super.onSaveInstanceState(outState);
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java