OSDN Git Service

Fixed a Null Pointer Error in Bluetooth Settings.
authorPauloftheWest <paulofthewest@google.com>
Tue, 9 Sep 2014 17:04:46 +0000 (10:04 -0700)
committerPauloftheWest <paulofthewest@google.com>
Tue, 9 Sep 2014 17:12:00 +0000 (10:12 -0700)
commitc009b8a4961451c3ab2d9fecb8c4559adc55425d
tree475668da3882410592550ea4f71aa6b340b872ff
parent574db4269528c7277f6e14a44156909fdb063190
Fixed a Null Pointer Error in Bluetooth Settings.

+ The root of the problem is that the callback for a device change may be
set before the fragment has a layout.  Then if a change does come in,
getView() would return null.  This fix delays registering the callback
until appropiate.

Bug: 17404518
Change-Id: Ibd0e90f82593d45729f427bcc2e40fe9195eb42a
src/com/android/settings/bluetooth/DeviceProfilesSettings.java