fragment/src/main/java/androidx/fragment/app/BackStackRecord.java
@Override
    public boolean generateOps(ArrayList<BackStackRecord> records, ArrayList<Boolean> isRecordPop) {
        if (FragmentManagerImpl.DEBUG) {
            Log.v(TAG, "Run: " + this);
        }

        records.add(this);
        isRecordPop.add(false);
        if (mAddToBackStack) {
            mManager.addBackStackState(this);
        }
        return true;
    }
/**
     * Implementation of {@link FragmentManagerImpl.OpGenerator}.
     * This operation is added to the list of pending actions during {@link #commit()}, and
     * will be executed on the UI thread to run this FragmentTransaction.
     *
     * @param records Modified to add this BackStackRecord
     * @param isRecordPop Modified to add a false (this isn't a pop)
     * @return true always because the records and isRecordPop will always be changed
     */


@param records Modified to add this BackStackRecord
@param isRecordPop Modified to add a false (this isn't a pop)
@return true always because the records and isRecordPop will always be changed
@param records Modified to add this BackStackRecord @param isRecordPop Modified to add a false ( this isn ' t a pop ) @return true always because the records and isRecordPop will always be changed
@Override
    public boolean generateOps(ArrayList<BackStackRecord> records, ArrayList<Boolean> isRecordPop) {
        if (FragmentManagerImpl.DEBUG) {
            Log.v(TAG, "Run: " + this);
        }
        records.add(this);
        isRecordPop.add(false);
        if (mAddToBackStack) {
            mManager.addBackStackState(this);
        }
        return true;
    }
@ Override public boolean generateOps ( ArrayList < BackStackRecord > records , ArrayList < Boolean > isRecordPop ) { if ( FragmentManagerImpl . DEBUG ) { Log . v ( TAG , "Run: " + this ) ; } records . add ( this ) ; isRecordPop . add ( false ) ; if ( mAddToBackStack ) { mManager . addBackStackState ( this ) ; } return true ; }
Implementation of {@link FragmentManagerImpl.OpGenerator}.
Implementation of { @link FragmentManagerImpl . OpGenerator } .