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);
    } 
     
} 
Connect your IDE to all the code out there  Get Codota for Java