Skip to content
Commit 8cb66757 authored by Charles Chen's avatar Charles Chen
Browse files

Creates WindowToken for WindowContext

...  until it adds the first view

In R, we create WindowToken for every WindowContext creation.
In S, we only create WindowToken for the WindowContext which adding
a view.
This CL also provide the ability to attach an existing WindowToken
by overriding WindowManager.LayoutParams.mToken, and remove the
WindowContext created WindowToken after WindowContext destruction.

Bug: 159767464
Bug: 153369119
Test: atest WindowTokenTests WindowContextListenerControllerTests
Change-Id: Iefe0315461b452a84cecbff2d08ee04c1f34051d
parent 3c3b134e
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