Components/xamandroidsupportv4-18-19.1.0/lib/android/19.1.0/content/support/v4/src/java/android/support/v4/app/FragmentActivity.java
@Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        mFragments.noteStateNotSaved();
        int index = requestCode>>16;
        if (index != 0) {
            index--;
            if (mFragments.mActive == null || index < 0 || index >= mFragments.mActive.size()) {
                Log.w(TAG, "Activity result fragment index out of range: 0x"
                        + Integer.toHexString(requestCode));
                return;
            }
            Fragment frag = mFragments.mActive.get(index);
            if (frag == null) {
                Log.w(TAG, "Activity result no fragment exists for index: 0x"
                        + Integer.toHexString(requestCode));
            } else {
                frag.onActivityResult(requestCode&0xffff, resultCode, data);
            }
            return;
        }
        
        super.onActivityResult(requestCode, resultCode, data);
    }
/**
     * Dispatch incoming result to the correct fragment.
     */
Dispatch incoming result to the correct fragment.
Dispatch incoming result to the correct fragment .
@Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        mFragments.noteStateNotSaved();
        int index = requestCode>>16;
        if (index != 0) {
            index--;
            if (mFragments.mActive == null || index < 0 || index >= mFragments.mActive.size()) {
                Log.w(TAG, "Activity result fragment index out of range: 0x"
                        + Integer.toHexString(requestCode));
                return;
            }
            Fragment frag = mFragments.mActive.get(index);
            if (frag == null) {
                Log.w(TAG, "Activity result no fragment exists for index: 0x"
                        + Integer.toHexString(requestCode));
            } else {
                frag.onActivityResult(requestCode&0xffff, resultCode, data);
            }
            return;
        }
        super.onActivityResult(requestCode, resultCode, data);
    }
@ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { mFragments . noteStateNotSaved ( ) ; int index = requestCode >> 16 ; if ( index != 0 ) { index -- ; if ( mFragments . mActive == null || index < 0 || index >= mFragments . mActive . size ( ) ) { Log . w ( TAG , "Activity result fragment index out of range: 0x" + Integer . toHexString ( requestCode ) ) ; return ; } Fragment frag = mFragments . mActive . get ( index ) ; if ( frag == null ) { Log . w ( TAG , "Activity result no fragment exists for index: 0x" + Integer . toHexString ( requestCode ) ) ; } else { frag . onActivityResult ( requestCode & 0xffff , resultCode , data ) ; } return ; } super . onActivityResult ( requestCode , resultCode , data ) ; }
Dispatch incoming result to the correct fragment.
Dispatch incoming result to the correct fragment .