summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorCharles Chen <charlesccchen@google.com>2020-10-20 15:37:24 +0800
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-10-21 18:07:13 +0000
commitb2def0f1b8c3975b21efc67314a3b49e33e4abc4 (patch)
treee4f19570e40ad296a68122cb68135d8036fde473 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb18b559dc96c2cbc406e3a2ccc715d0a68701179 (diff)
Fix bind service failure on Android Auto
The failure is because ActiveServices thought window context's token is an Activity token but could not find the corresponding ActivityRecord in ATMS and then early-returned. This issue was exposed because of Presentation's window context migration. This CL relaxed the condition to early return only if the token is neither an Activity token nor a WindowContext token. Bug: 171280916 Bug: 171027173 Bug: 170960206 Test: Tests mentioned in b/170960206#comment1 Test: manual - use auto desktop mode to launch Music/Maps Test: atest WindowContextTests#testWindowContextBindService Change-Id: I313d3d870caa28e02af035b4a6032d649f81a510 (cherry picked from commit 8005b00b75619bc0d5c7c7590dd3681625ef50dd)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions