diff options
| author | 2024-06-20 15:19:06 +0000 | |
|---|---|---|
| committer | 2024-06-21 11:35:03 +0000 | |
| commit | a67e15286d4c8d834ef08a1e17876bc751891a91 (patch) | |
| tree | f1a7ba7f9e72f00a52c413f6d020b1161f923abf /api/api.go | |
| parent | a872fb0134eb22041ee99009ffabdf2e517fa459 (diff) | |
Fix empty desktop mode after closing the last window (part 2)
- Changed `isOnlyActiveNonClosingTask` to `isOnlyVisibleNonClosingTask`, because back navigation doesn't remove task from active and doesn't call `onTaskVanished`
- Removed closing tasks removal from the `onTaskVanished` as it's handled in `onTaskInfoChanged`
- Changed `handleBackNavigation` to `handleTaskClosing`, because app can decide to close on back navigation and won't get handled
Bug: 343726497
Test: atest WMShellUnitTests:DesktopTasksControllerTest WMShellUnitTests:DesktopModeTaskRepositoryTest
Flag: com.android.window.flags.enable_desktop_windowing_wallpaper_activity
Change-Id: Ia4a8d8f1dbaf25536cb470a4501e899c61845f69
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions