summaryrefslogtreecommitdiff
path: root/core/java/android/bluetooth/BluetoothManager.java
diff options
context:
space:
mode:
authorJeremy Klein <jlklein@google.com>2016-09-27 14:34:33 -0700
committerAndre Eisenbach <eisenbach@google.com>2016-09-28 07:09:38 +0000
commitadc26ec1b4060358d918d1bdf491f5192b35c2d3 (patch)
treeb9a59c9151679a402a89e842afdc398a014a9aa1 /core/java/android/bluetooth/BluetoothManager.java
parent4e236046aea01e6cf13dafb25ccf9ebf4de5b197 (diff)
Remove unused mContext from BluetoothGatt[Server].
All that this member variable is doing right now is leaking a reference to a context without any benefit. Bug: 31752040 Bug: 31710795 Change-Id: If2241422533318b866340e8dcc9f5fbd9518349c
Diffstat (limited to 'core/java/android/bluetooth/BluetoothManager.java')
-rw-r--r--core/java/android/bluetooth/BluetoothManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothManager.java b/core/java/android/bluetooth/BluetoothManager.java
index 00058a979094..29283e793ce9 100644
--- a/core/java/android/bluetooth/BluetoothManager.java
+++ b/core/java/android/bluetooth/BluetoothManager.java
@@ -236,7 +236,7 @@ public final class BluetoothManager {
Log.e(TAG, "Fail to get GATT Server connection");
return null;
}
- BluetoothGattServer mGattServer = new BluetoothGattServer(context, iGatt,transport);
+ BluetoothGattServer mGattServer = new BluetoothGattServer(iGatt,transport);
Boolean regStatus = mGattServer.registerCallback(callback);
return regStatus? mGattServer : null;
} catch (RemoteException e) {