summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorAgatha Man <agathaman@google.com>2020-05-28 09:30:47 -0700
committerAgatha Man <agathaman@google.com>2020-05-29 15:39:15 +0000
commit74d8c09b8aee9c0866664c85f69d698f98661838 (patch)
tree90125c0c3cb3ec5dbfe04539ec5846b1474e638b /tools/aapt2/java/JavaClassGenerator.cpp
parent9511c45efc19fcf0d398af1a3b6f8f1e30cf6c7e (diff)
Ignore public volume state change event of removed user in Automotive
Volume state change event may come from removed user, in this case, mountedUserId will equal to UserHandle.USER_NULL (-10000) which will do nothing when call cancelAsUser(), but cauase crash when call notifyAsUser(). Here we return directly for USER_NULL, and leave all notifications belong to removed user to NotificationmanagerService, the latter will remove all notifications of the removed user when handles user stopped broadcast. Bug: 156667908 Test: manual - remove user while usb plugged in Change-Id: I23670e070a17b6da8bdd9eb336aa053e3b799b16
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions