summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorwilsonshih <wilsonshih@google.com>2018-08-06 15:42:07 +0800
committerwilsonshih <wilsonshih@google.com>2018-08-22 09:22:47 +0800
commitab67294b510782810071889fbc6d715dd45973bd (patch)
treecc491db82c1f0a80a03eddf4e146b9c130df4861 /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta2e28a4b86409415e84d36fcc072e6c3c2f0e561 (diff)
Fix displayId unsynced between app and system server.
If an activity is launched on non-default display and calls setVrModeEnabled at onCreate stage, the server will move this task to default display. Then ActivityThread.handleResumeActivity will crash because ViewRootImpl still use the old display. First, the launch activity process will create a ClientTransaction object, with first transaction item is LaunchActivityItem, and lifecycle state set as ResumeActivityItem. When client side starts to execute this transaction, ensureActivityConfiguration will schedule MoveToDisplayItem to another transaction, however, it cannot be execute before first transaction completes. We can resolve this problem by using the display ID associated with the WindowToken for a Window (when available), this will always have the most up-to-date value from the server. Also re-sort imports. bug: 72181603 bug: 112330955 Test: atest CtsActivityManagerDeviceTestCases Test: atest CtsWindowManagerDeviceTestCases Test: wm-smoke Change-Id: I39a59cf3520a15b486e675284f9aed275343d3cf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions