Merge "Fix memory leak in Bluetooth settings"

am: 5a652c0286

Change-Id: Ica95ac1bed6dbbc305315a32c1c9a92bb83d4574
This commit is contained in:
mingliang.x.lei
2017-08-09 18:34:07 +00:00
committed by android-build-merger

View File

@@ -215,6 +215,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
@Override @Override
public void onStop() { public void onStop() {
super.onStop(); super.onStop();
mPairedDevicesCategory.removeAll();
if (mBluetoothEnabler != null) { if (mBluetoothEnabler != null) {
mBluetoothEnabler.pause(); mBluetoothEnabler.pause();
} }