summaryrefslogtreecommitdiffstats
path: root/core/java/android/bluetooth/BluetoothGatt.java
diff options
context:
space:
mode:
authorPrerepa Viswanadham <dham@google.com>2014-09-11 13:39:16 -0700
committerPrerepa Viswanadham <dham@google.com>2014-09-11 22:29:27 +0000
commitba4f57a1c6979676d20ff29a614deb64171230e6 (patch)
tree0b6577c5816f9cf52549131b1eedf9ce2944cf2e /core/java/android/bluetooth/BluetoothGatt.java
parentc46cd62b5c808101a204be6a5db2bf63701c8944 (diff)
downloadframeworks_base-ba4f57a1c6979676d20ff29a614deb64171230e6.zip
frameworks_base-ba4f57a1c6979676d20ff29a614deb64171230e6.tar.gz
frameworks_base-ba4f57a1c6979676d20ff29a614deb64171230e6.tar.bz2
Remove onConnectionCongested callback
Bug:17289507 Change-Id: I49fd99d320084c618dcec756b832fb3b6a6aec51
Diffstat (limited to 'core/java/android/bluetooth/BluetoothGatt.java')
-rw-r--r--core/java/android/bluetooth/BluetoothGatt.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothGatt.java b/core/java/android/bluetooth/BluetoothGatt.java
index d77a77b..2276229 100644
--- a/core/java/android/bluetooth/BluetoothGatt.java
+++ b/core/java/android/bluetooth/BluetoothGatt.java
@@ -51,6 +51,7 @@ public final class BluetoothGatt implements BluetoothProfile {
private int mConnState;
private final Object mStateLock = new Object();
private Boolean mDeviceBusy = false;
+ private Boolean mIsCongested = false;
private int mTransport;
private static final int CONN_STATE_IDLE = 0;
@@ -616,7 +617,7 @@ public final class BluetoothGatt implements BluetoothProfile {
+ " congested=" + congested);
if (!address.equals(mDevice.getAddress())) return;
try {
- mCallback.onConnectionCongested(BluetoothGatt.this, congested);
+ mIsCongested = congested;
} catch (Exception ex) {
Log.w(TAG, "Unhandled exception in callback", ex);
}