am 1798fc04
: Merge "Fixed a memory leak in the bluetooth settings"
* commit '1798fc049eda5f6fd14be3a369eebe81c851abd2': Fixed a memory leak in the bluetooth settings
This commit is contained in:
@@ -161,8 +161,6 @@ public class BluetoothSettings extends PreferenceActivity
|
|||||||
|
|
||||||
// Repopulate (which isn't too bad since it's cached in the settings
|
// Repopulate (which isn't too bad since it's cached in the settings
|
||||||
// bluetooth manager
|
// bluetooth manager
|
||||||
mDevicePreferenceMap.clear();
|
|
||||||
mDeviceList.removeAll();
|
|
||||||
addDevices();
|
addDevices();
|
||||||
|
|
||||||
if (mScreenType == SCREEN_TYPE_SETTINGS) {
|
if (mScreenType == SCREEN_TYPE_SETTINGS) {
|
||||||
@@ -187,6 +185,9 @@ public class BluetoothSettings extends PreferenceActivity
|
|||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
|
|
||||||
|
mDevicePreferenceMap.clear();
|
||||||
|
mDeviceList.removeAll();
|
||||||
|
|
||||||
mLocalManager.setForegroundActivity(null);
|
mLocalManager.setForegroundActivity(null);
|
||||||
mDevicePreferenceMap.clear();
|
mDevicePreferenceMap.clear();
|
||||||
mDeviceList.removeAll();
|
mDeviceList.removeAll();
|
||||||
|
Reference in New Issue
Block a user