Skip to content

Instantly share code, notes, and snippets.

@oing9179
oing9179 / FragmentStateUtil.java
Last active Jul 9, 2017
Utility class help you to drop Fragment state before it's being restored.
View FragmentStateUtil.java
package your.packagename;
import android.app.Activity;
import android.os.Bundle;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
/**
* Prevent Fragment being restored in {@link Activity#onCreate(Bundle)}.
You can’t perform that action at this time.