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

Commit d869b235 authored by Bartosz Chomiński's avatar Bartosz Chomiński Committed by Android (Google) Code Review
Browse files

Merge "Clean-up of task move request bounds adjustment stubs in Core" into main

parents ca0c4054 365501c6
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -207,7 +207,6 @@ class AppTaskImpl extends IAppTask.Stub {
                    displayId = task.getDisplayId();
                }

                adjustTaskMoveRequestBounds(displayId, bounds);
                final int result = validateTaskMoveRequest(displayId, bounds, task,
                        origCallingPid, origCallingUid);
                if (result != RESULT_APPROVED) {
@@ -323,13 +322,6 @@ class AppTaskImpl extends IAppTask.Stub {
        return RESULT_APPROVED;
    }

    private void adjustTaskMoveRequestBounds(int displayId, Rect bounds) {
        // TODO(b/421882376): add a best-effort strategy that fixes |displayId| and |bounds| if
        // needed. Some possible fixes: moving the bounds inside the display, ensuring minimal and
        // maximal size requirements are met, more complex topology-based fixes including changing
        // the target display if the bounds are fully offscreen.
    }

    @Override
    public int startActivity(IBinder whoThread, String callingPackage, String callingFeatureId,
            Intent intent, String resolvedType, Bundle bOptions) {