summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Xiaowen Lei <xilei@google.com> 2022-06-21 22:55:10 +0000
committer Xiaowen Lei <xilei@google.com> 2022-06-22 01:37:27 +0000
commit2a2a8e1b2c90cc804a9afa8913536281124cf377 (patch)
tree8be6b35117f6f9d540fa82728aeb9c74741a0315 /libs/androidfw/StringPool.cpp
parentce97eb648080961ec8c68c1421f05c2e8252adc0 (diff)
Remove SmartSpaceComplication when the SmartspaceTargetListener is removed.
The listener removes the SmartSpaceComplication when the targets becomes empty. If the listener isn't connected, we don't know whether/when the targets becomes empty. Therefore we should just remove the complication when the listener is removed. This fixes the extra DATE card impression on the Dream surface. The CardPagerAdapter adds a default DATE card when its setTargets method is called with an empty list. This CL ensures that for Dream Smartspace, the setTargets method is never called with an empty list. Reorganized the existing testAvailability() test into multiple tests. The new logic is tested in testOverlayInActive_removesTargetListener_removesComplication(). Bug: 231251252 Test: on device via `adb logcat ...` Test: atest SmartSpaceComplicationTest Change-Id: Iac0d8a9697f42e2c70c83c5da050f17190fcc3c1
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions