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

Commit 4db46a16 authored by Jorge Gil's avatar Jorge Gil
Browse files

Desks: Only deactivate pre-recents desk

Ensures that the only desk that is deactivated on a
!returnToApp recents finish is the desk that was active when we first
entered Overview. This is because desk->desk transitions from Overview
are also !returnToApp, and by the time this finishing function is called
the new desk is now the "active" one, which would result in deactivating
the desk that the user intended to activate.

With this change, the active desk is saved when recents first starts, so
that only that one is deactivated on finishing if !returnToApp (e.g.
going Home or to a non-desktop tile)

Flag: com.android.window.flags.enable_multiple_desktops_backend
Bug: 409848289
Bug: 409639676
Test: switch desks from overview - verify activation change is
successful

Change-Id: I227b03856784796d475a9d4de003c40c1993f766
parent 82654ed9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment