Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f3c517e authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Adding Intent Redirection for PhotoPicker Intent" into udc-dev...

Merge "Merge "Adding Intent Redirection for PhotoPicker Intent" into udc-dev am: e3cc21a6 am: 478283d6" into udc-d1-dev-plus-aosp
parents e28750ac ef99664f
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -437,6 +437,16 @@ public class DefaultCrossProfileIntentFiltersUtils {
                    .addCategory(Intent.CATEGORY_DEFAULT)
                    .build();

    private static final DefaultCrossProfileIntentFilter CLONE_TO_PARENT_PHOTOPICKER_SELECTION =
            new DefaultCrossProfileIntentFilter.Builder(
                    DefaultCrossProfileIntentFilter.Direction.TO_PARENT,
                    /* flags= */ 0x00000018, // 0x00000018 means FLAG_IS_PACKAGE_FOR_FILTER
                    // and FLAG_ALLOW_CHAINED_RESOLUTION set
                    /* letsPersonalDataIntoProfile= */ false)
                    .addAction(MediaStore.ACTION_USER_SELECT_IMAGES_FOR_APP)
                    .addCategory(Intent.CATEGORY_DEFAULT)
                    .build();

    /*
     Allowing send action from clone to parent profile to share content from clone apps to parent
     apps
@@ -611,7 +621,8 @@ public class DefaultCrossProfileIntentFiltersUtils {
                CLONE_TO_PARENT_VIEW_ACTION,
                CLONE_TO_PARENT_PICK_INSERT_ACTION,
                CLONE_TO_PARENT_DIAL_DATA,
                CLONE_TO_PARENT_SMS_MMS
                CLONE_TO_PARENT_SMS_MMS,
                CLONE_TO_PARENT_PHOTOPICKER_SELECTION
        );
    }
}