OSDN Git Service

Fix bad type for txPower in PeriodicAdvertisingReport serialization
authorJakub Pawlowski <jpawlowski@google.com>
Fri, 8 Dec 2017 06:56:03 +0000 (22:56 -0800)
committerJP Sugarbroad <jpsugar@google.com>
Tue, 13 Feb 2018 22:34:41 +0000 (14:34 -0800)
Bug: 69634768
Test: compilation
Change-Id: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2
Merged-In: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2
(cherry picked from commit 5332988c62e2f2ededb29ac3bfc4774551fe956f)

core/java/android/bluetooth/le/PeriodicAdvertisingReport.java

index 51b93cb..6fc8d55 100644 (file)
@@ -71,7 +71,7 @@ public final class PeriodicAdvertisingReport implements Parcelable {
     @Override
     public void writeToParcel(Parcel dest, int flags) {
         dest.writeInt(syncHandle);
-        dest.writeLong(txPower);
+        dest.writeInt(txPower);
         dest.writeInt(rssi);
         dest.writeInt(dataStatus);
         if (data != null) {