Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2211)

Unified Diff: device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java

Issue 2707823002: bluetooth: Save characteristic value when notification arrives (Closed)
Patch Set: fix test Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java
diff --git a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java
index 7d6c50fe381793986e50529a9796adb6cc834da3..fdf6c7b94044076625d298586e22f5215dc97b8b 100644
--- a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java
+++ b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java
@@ -58,11 +58,10 @@ final class ChromeBluetoothRemoteGattCharacteristic {
mChromeDevice.mWrapperToChromeCharacteristicsMap.remove(mCharacteristic);
}
- void onCharacteristicChanged() {
+ void onCharacteristicChanged(byte[] value) {
Log.i(TAG, "onCharacteristicChanged");
if (mNativeBluetoothRemoteGattCharacteristicAndroid != 0) {
- nativeOnChanged(
- mNativeBluetoothRemoteGattCharacteristicAndroid, mCharacteristic.getValue());
+ nativeOnChanged(mNativeBluetoothRemoteGattCharacteristicAndroid, value);
}
}

Powered by Google App Engine
This is Rietveld 408576698