diff options
| author | Tiger Huang <tigerhuang@google.com> | 2019-07-18 19:00:01 +0800 |
|---|---|---|
| committer | Tiger Huang <tigerhuang@google.com> | 2019-07-19 14:21:24 +0800 |
| commit | 5f6cbca21b7e2559b4507a3b9bfb1f0946104d96 (patch) | |
| tree | 653fb762fb1a29e0b9870494b712f7e46914073b /docs/html/sdk/api_diff/19/changes | |
| parent | d211a32119ec037f9a3365e1e2f871adad035f8b (diff) | |
Fix a NullPointerException caused by NEW_INSETS_MODE_FULL
InsetsSourceProvider.updateControlForTarget must be called while mWin
has the SurfaceControl. Otherwise, mAdapter will be cleared by
ControlAdapter.onAnimationCancelled. See
SurfaceAnimator.startAnimation.
This CL separates DisplayPolicy.prepareAddWindowLw into two parts:
1. Check if we can add a window to the system.
2. Apply policies on certain types of window.
We move the second part below mToken.addWindow. So the window has the
SurfaceControl while we set insets provider.
Bug: 118118435
Test: atest DisplayPolicyInsetsTests DisplayPolicyLayoutTests
Test: See if the system can be rebooted after entering the commands:
adb root
adb setprop persist.wm.new_insets 2
adb reboot
Change-Id: I15c9a3ab49dee1c0f7009334adbd6fd1af8e0ba7
Diffstat (limited to 'docs/html/sdk/api_diff/19/changes')
0 files changed, 0 insertions, 0 deletions
