List of usage examples for android.support.v4.app Fragment hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:com.uprayzner.mediator.activities.EventActivity.java
public void addFragment(@IdRes int container, Fragment fragment) { getSupportFragmentManager().beginTransaction().add(container, fragment) .addToBackStack(fragment.hashCode() + "").commitAllowingStateLoss(); }
From source file:com.uprayzner.mediator.activities.EventActivity.java
public void share(Fragment des, View sharedView, @StringRes int transitionName) { getSupportFragmentManager().beginTransaction().add(ContentActivity.FRAGMENT_CONTAINER, des) .addToBackStack(des.hashCode() + "").addSharedElement(sharedView, getString(transitionName)) .commit();//from w w w . j a v a2 s. c om }