commit | 0b9a6304aa4cb13566c830df8238f03aac3d1779 | [log] [tgz] |
---|---|---|
author | Shen Lin <shhenlin@gmail.com> | Sun Sep 04 22:45:10 2022 +0800 |
committer | Shen Lin <shhenlin@gmail.com> | Tue Sep 06 14:55:08 2022 +0800 |
tree | fca03a0fef8ffbf6014ef4011e6332a8f0ab5302 | |
parent | 36a80cd8e63150745022ae32b8a4d06097f5b073 [diff] |
Fix NPE crash in UwbPreferenceController and optimize the lifecycle observer adding condition in page This patch contains two fixes: - Make sure mUwbManager is non-null by calling isUwbSupportedOnDevice to avoid a NPE. - Modify AdvancedConnectedDeviceDashboardFragment, add lifecycle observer only if device supports UWB. Bug: 244871579 Test: manual test and Robotest. Change-Id: I78f97794a66f3fb487f067c4570899e21c254acf