Skip to content
Commit efa0a41f authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Specify the parent viewgroup that should hide controls

Without this, launching ControlsActivtiy while it's running may cause to
two instances of it existing for a brief moment. As the new instance
will call `show` before the old instance calls `hide`, this will cause
everything to be hidden (and all listeners removed).

Instead, specify what parent view is calling hide. This makes it so we
can decide whether to completely hide `ControlsUiControllerImpl` or just
remove the views from the old parent.

Test: atest ControlsUiControllerImplTest
Test: manual, launch from LS and then from QS
Test: heapdump: old ControlsActivity is released
Bug: 267949140
Change-Id: I86a323cf25e5da81e610a21c4426872ef8684480
parent 7bf32dfd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment