resolve merge conflicts of b34cf86 to nyc-dev-plus-aosp

Change-Id: Ie6a95224a62023a2a19054aa95382d24365124f5
This commit is contained in:
Robert Greenwalt
2016-06-13 13:01:36 -07:00

View File

@@ -199,6 +199,13 @@ public class TetherSettings extends RestrictedSettingsFragment
@Override
public void onDestroy() {
mDataSaverBackend.remListener(this);
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
BluetoothProfile profile = mBluetoothPan.getAndSet(null);
if (profile != null && adapter != null) {
adapter.closeProfileProxy(BluetoothProfile.PAN, profile);
}
super.onDestroy();
}