diff options
| author | 2022-05-09 17:21:38 -0700 | |
|---|---|---|
| committer | 2022-05-11 23:32:36 +0000 | |
| commit | 1b6759795650def029481f43baca6d0945f826b1 (patch) | |
| tree | d1d2c79567ff22a4dda7568ca43a5fdce26231d1 /libs/androidfw/StringPool.cpp | |
| parent | f50f5235b0416acd32f0e4b679a1aba2f89f2d79 (diff) | |
Clear liveData when startForRequest
We should not clear the liveData
in onDestory. Because the device list
will be empty when finish the discovery and
the UI will show empty device list.
Instead, we need to clear/reset the livedata
when startForRequest, so we update the devicelist
before the UI pop up.
Bug: 211836059
Test: atest CtsCompanionDeviceManagerCoreTestCases
atest CtsCompanionDeviceManagerUiAutomationTestCases
atest CtsOsTestCases:CompanionDeviceManagerTest
Change-Id: I78f3137f5fa1329b52138d221ba7abc38c9f563e
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions