diff options
author | Bill Lin <lbill@google.com> | 2020-11-03 16:26:00 +0800 |
---|---|---|
committer | Bill Lin <lbill@google.com> | 2021-01-28 15:00:02 +0800 |
commit | 1fd078151b0f1a0d69d6235f3da21505123bea26 (patch) | |
tree | 30e541a7ba25643d11ebbd0ecffde318e4895873 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 2e4306e954af1d681d19ad2cfc55f39dd4335159 (diff) |
Re-map DisplayAreaAppearedInfo to token-leash map
Clean-up DA callback APIs of OneHandedDisplayAreaOrganizer
onDisplayAreaAppeared()
onDisplayAreaVanished()
Note:
When super.unregisterOrganizer() is called, all DAs should be
removed from the map in the callback of onDisplayAreaVanished().
It was not working correctly because the map is using DisplayAreaInfo
as the key, which will be different because of the different
configuration object. We should use the DA token as the key.
Bug: b/172298357
Test: atest WMShellUnitTests:OneHandedDisplayAreaOrganizerTest
Test: atest SystemUITests
Test: Trigger OHM, rotate screen
Test: Trigger OHM, disabled through settings
Change-Id: I4560df1ab36ec33292fa4ec08cab28644b0fabe2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions