diff --git a/src/com/android/settings/TetherSettings.java b/src/com/android/settings/TetherSettings.java index 86fb1d397aa..e033f9408ed 100644 --- a/src/com/android/settings/TetherSettings.java +++ b/src/com/android/settings/TetherSettings.java @@ -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(); }