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

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

Merge "Ensure snap resize toast is shown on correct display" into main

parents 4a75c1d7 c7283b63
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -2863,8 +2863,9 @@ class DesktopTasksController(
        inputMethod: InputMethod,
    ) {
        if (!isSnapResizingAllowed(taskInfo)) {
            val displayContext = displayController.getDisplayContext(taskInfo.displayId) ?: context
            Toast.makeText(
                    getContext(),
                    displayContext,
                    R.string.desktop_mode_non_resizable_snap_text,
                    Toast.LENGTH_SHORT,
                )
@@ -2908,9 +2909,11 @@ class DesktopTasksController(
                startBounds = currentDragBounds,
                endBounds = dragStartBounds,
                doOnEnd = {
                    val displayContext =
                        displayController.getDisplayContext(taskInfo.displayId) ?: context
                    Toast.makeText(
                            context,
                            com.android.wm.shell.R.string.desktop_mode_non_resizable_snap_text,
                            displayContext,
                            R.string.desktop_mode_non_resizable_snap_text,
                            Toast.LENGTH_SHORT,
                        )
                        .show()