diff options
author | Prerepa Viswanadham <dham@google.com> | 2014-09-11 13:39:16 -0700 |
---|---|---|
committer | Prerepa Viswanadham <dham@google.com> | 2014-09-11 22:29:27 +0000 |
commit | d50b5615c1364b6aa57eec33318533063a3603d7 (patch) | |
tree | 7a66901c9e28e3f47c47c8e9b3ee0230a70cc4ec /framework/java/android/bluetooth/BluetoothGattServer.java | |
parent | 71a86a646980a3726981757e174b86bb7d3a65d1 (diff) |
Remove onConnectionCongested callback
Bug:17289507
Change-Id: I49fd99d320084c618dcec756b832fb3b6a6aec51
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothGattServer.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothGattServer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothGattServer.java b/framework/java/android/bluetooth/BluetoothGattServer.java index c8df60e800..a7f117b44c 100644 --- a/framework/java/android/bluetooth/BluetoothGattServer.java +++ b/framework/java/android/bluetooth/BluetoothGattServer.java @@ -48,6 +48,7 @@ public final class BluetoothGattServer implements BluetoothProfile { private BluetoothAdapter mAdapter; private IBluetoothGatt mService; private BluetoothGattServerCallback mCallback; + private Boolean mIsCongested = false; private Object mServerIfLock = new Object(); private int mServerIf; @@ -297,7 +298,7 @@ public final class BluetoothGattServer implements BluetoothProfile { if (device == null) return; try { - mCallback.onConnectionCongested(device, congested); + mIsCongested = congested; } catch (Exception ex) { Log.w(TAG, "Unhandled exception in callback", ex); } |