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

Commit 6cab89d2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Incorporate calling userId for ViewConfiguration resource overlays" into main

parents 0b80b606 e5224a79
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -96,11 +96,12 @@ public class ViewConfigurationController {
        setResourceIntValue(overlay, DOUBLE_TAP_MIN_TIME_RESOURCE_NAME,
                (int) viewConfigurationParams.getDoubleTapMinTimeDuration().toMillis());

        int callingUserId = Binder.getCallingUserHandle().getIdentifier();
        Binder.withCleanCallingIdentity(() -> {
            mOverlayManager.commit(
                    new OverlayManagerTransaction.Builder()
                            .registerFabricatedOverlay(overlay)
                            .setEnabled(overlayIdentifier, true /* enable */,
                            .setEnabled(overlayIdentifier, true /* enable */, callingUserId,
                                    List.of(new OverlayConstraint(OverlayConstraint.TYPE_DEVICE_ID,
                                            deviceId)))
                            .build());