fragment/src/main/java/androidx/fragment/app/FragmentActivity.java
public void startIntentSenderFromFragment(Fragment fragment, IntentSender intent,
            int requestCode, @Nullable Intent fillInIntent, int flagsMask, int flagsValues,
            int extraFlags, Bundle options) throws IntentSender.SendIntentException {
        mStartedIntentSenderFromFragment = true;
        try {
            if (requestCode == -1) {
                ActivityCompat.startIntentSenderForResult(this, intent, requestCode, fillInIntent,
                        flagsMask, flagsValues, extraFlags, options);
                return;
            }
            checkForValidRequestCode(requestCode);
            int requestIndex = allocateRequestIndex(fragment);
            ActivityCompat.startIntentSenderForResult(this, intent,
                    ((requestIndex + 1) << 16) + (requestCode & 0xffff), fillInIntent,
                    flagsMask, flagsValues, extraFlags, options);
        } finally {
            mStartedIntentSenderFromFragment = false;
        }
    }
/**
     * Called by Fragment.startIntentSenderForResult() to implement its behavior.
     */
Called by Fragment.startIntentSenderForResult() to implement its behavior.
Called by Fragment . startIntentSenderForResult () to implement its behavior .
public void startIntentSenderFromFragment(Fragment fragment, IntentSender intent,
            int requestCode, @Nullable Intent fillInIntent, int flagsMask, int flagsValues,
            int extraFlags, Bundle options) throws IntentSender.SendIntentException {
        mStartedIntentSenderFromFragment = true;
        try {
            if (requestCode == -1) {
                ActivityCompat.startIntentSenderForResult(this, intent, requestCode, fillInIntent,
                        flagsMask, flagsValues, extraFlags, options);
                return;
            }
            checkForValidRequestCode(requestCode);
            int requestIndex = allocateRequestIndex(fragment);
            ActivityCompat.startIntentSenderForResult(this, intent,
                    ((requestIndex + 1) << 16) + (requestCode & 0xffff), fillInIntent,
                    flagsMask, flagsValues, extraFlags, options);
        } finally {
            mStartedIntentSenderFromFragment = false;
        }
    }
public void startIntentSenderFromFragment ( Fragment fragment , IntentSender intent , int requestCode , @ Nullable Intent fillInIntent , int flagsMask , int flagsValues , int extraFlags , Bundle options ) throws IntentSender . SendIntentException { mStartedIntentSenderFromFragment = true ; try { if ( requestCode == - 1 ) { ActivityCompat . startIntentSenderForResult ( this , intent , requestCode , fillInIntent , flagsMask , flagsValues , extraFlags , options ) ; return ; } checkForValidRequestCode ( requestCode ) ; int requestIndex = allocateRequestIndex ( fragment ) ; ActivityCompat . startIntentSenderForResult ( this , intent , ( ( requestIndex + 1 ) << 16 ) + ( requestCode & 0xffff ) , fillInIntent , flagsMask , flagsValues , extraFlags , options ) ; } finally { mStartedIntentSenderFromFragment = false ; } }
Called by Fragment.startIntentSenderForResult() to implement its behavior.
Called by Fragment . startIntentSenderForResult () to implement its behavior .