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

am: 89b8babe6a

Change-Id: I5918f6a061ab0d5f3d81b99174d5517cd44e389c
This commit is contained in:
宋凯伦
2016-06-13 20:10:42 +00:00
committed by android-build-merger

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();
}