commit | b68b97f2e31e4bdff2bdcc8f94309492b8b87ff1 | [log] [tgz] |
---|---|---|
author | Hansong Zhang <hsz@google.com> | Wed Dec 09 14:25:15 2020 -0800 |
committer | Myles Watson <mylesgw@google.com> | Thu Mar 25 14:48:39 2021 -0700 |
tree | 5f1ed10bc08f05ca0cab3ad88181114390ca4797 | |
parent | 32c1220518297a842840b622679777701e2c631e [diff] |
Bluetooth airplane listener: Check for null Check mAirplaneHelper != null before accessing it. Note that this can be null if Settings.Global.RADIO_BLUETOOTH is enabled in AIRPLANE_MODE_RADIOS. We don't need to disable Bluetooth if it's allowed in airplane mode. Test: atest FrameworksServicesTests Bug: 174254527 Change-Id: I93ae4ec6b75b7ffb8e75848d7779ab64593221bd (cherry picked from commit b49f86605411035817a305bed6d1ef6c389c6c7b)