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

Commit 20b4989d authored by Miranda Kephart's avatar Miranda Kephart Committed by Android (Google) Code Review
Browse files

Merge "Set package name explicitly when sending copy intent" into tm-dev

parents 277ed260 78262f70
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -247,7 +247,10 @@ public class ClipboardOverlayController {
                SELF_PERMISSION, null);
        monitorOutsideTouches();

        mContext.sendBroadcast(new Intent(COPY_OVERLAY_ACTION), SELF_PERMISSION);
        Intent copyIntent = new Intent(COPY_OVERLAY_ACTION);
        // Set package name so the system knows it's safe
        copyIntent.setPackage(mContext.getPackageName());
        mContext.sendBroadcast(copyIntent, SELF_PERMISSION);
    }

    void setClipData(ClipData clipData, String clipSource) {