summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author SongFerngWang <songferngwang@google.com> 2022-07-21 18:11:03 +0800
committer SongFerngWang <songferngwang@google.com> 2022-07-27 14:25:35 +0800
commitf77dbb4c4a7da5fdbff8fea555dc95f3827befef (patch)
tree459d8d7cadda86fd17b4a61f1716bbd3408784ee /libs/androidfw/StringPool.cpp
parentcf3b16d69b5f769a2bb45cc860ddbce79cdef9d0 (diff)
[LeBroadcast] Fix the NullPointerException for launching dialog
Since the BluetoothLeBroadcastMetadata is null, and it causes the NullPointerException. After the system starts broadcast, the framework sends two callbacks, first is onBroadcastStarted, and second one is onBroadcastMetadataChanged. The BluetoothLeBroadcastMetadata object is created before onBroadcastMetadataChanged. Therefore,the app needs to wait the onBroadcastMetadataChanged, and then launchs the broadcast dialog. If the app launchs after the onBroadcastStarted, then the broadcast dialog can't get the null BluetoothLeBroadcastMetadata and it causes UI show the wrong QR code. Bug: 237976782 Test: build pass and manually test Change-Id: I91a28079ae01bbc5cc4c3ce9331741f0b4ee81c0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions