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

Commit ecbe4217 authored by Jorge Gil's avatar Jorge Gil Committed by Android Build Coastguard Worker
Browse files

Check parent is attached before restoring from requestFullscreenMode

The mMultiWindowRestoreParent might've been removed while the
requestFullscreenMode task was in fullscreen, so attempting to restore
to it will raise an error in system_server.

This is possible in multi-desks when a task inside the desk root task
requests fullscreen and thus gets moved out of the desk, then if the
desk is removed (e.g. from Overview) there restore parent of the
fullscreen task is no longer valid and we shouldn't attempt to reparent
it there.

Flag: EXEMPT BUGFIX
Bug: 444605677
Test: open two apps in desktop, have one app requestFullscreenMode with
the API, swipe up to overview and dismiss the desk the task was in, go
back to the fullscreen app and make it exit with the API - verify
there's no exception thrown in system server and the system is still
usable.
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:0270e7e424f7836eefe6c6f66e2b06f828884471
Merged-In: I34fd85822b9b5969a10791ec36a92ce7a938e416
Change-Id: I34fd85822b9b5969a10791ec36a92ce7a938e416
parent c97f0b87
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