Code example for FragmentTransaction

Methods: commitAllowingStateLoss

0
 
    @Override 
    public void finishUpdate(ViewGroup container) {
        if (mCurTransaction != null) {
            try { 
                mCurTransaction.commitAllowingStateLoss();
                mFragmentManager.executePendingTransactions();
            } catch (Exception e) {
 
            } 
            mCurTransaction = null;
        } 
    } 
 
    @Override 
    public boolean isViewFromObject(View view, Object object) {
        return ((Fragment) object).getView() == view;
    } 
 
    @Override 
    public Parcelable saveState() {