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

Commit 7c3ef3b6 authored by Ben Lin's avatar Ben Lin
Browse files

Don't reset density when going to splitscreen if there was no override.

We only override density for freeform tasks if desktopConfig.useDesktopOverrideDensity is true. So only reset it if so.

Bug: 440245803
Test: Manual. Check splitscreen on external display and see apps are no longer at wrong density.
Flag: EXEMPT bugfix
Change-Id: Iddaaca39ce9c185c38560bfbf77b6d98f20f3510
parent 0dd5ae13
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -4702,8 +4702,10 @@ class DesktopTasksController(
        }
        }
        // The task's density may have been overridden in freeform; revert it here as we don't
        // The task's density may have been overridden in freeform; revert it here as we don't
        // want it overridden in multi-window.
        // want it overridden in multi-window.
        if (desktopConfig.useDesktopOverrideDensity) {
            wct.setDensityDpi(taskInfo.token, getDefaultDensityDpi())
            wct.setDensityDpi(taskInfo.token, getDefaultDensityDpi())
        }
        }
    }


    /** Returns the ID of the Task that will be minimized, or null if no task will be minimized. */
    /** Returns the ID of the Task that will be minimized, or null if no task will be minimized. */
    private fun addAndGetMinimizeChanges(
    private fun addAndGetMinimizeChanges(