From f5e368ff2643f4060e5c55143560554e207d40b0 Mon Sep 17 00:00:00 2001 From: Prerepa Viswanadham Date: Tue, 19 May 2015 14:55:09 -0700 Subject: [PATCH] setCallbackType should be public for onlost/onfound apis Bug: 21304922 Change-Id: I27ed4f3e00ac13354e3ef75e5686916be0d10918 --- api/current.txt | 1 + core/java/android/bluetooth/le/ScanSettings.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/current.txt b/api/current.txt index 6fc76067f7607..80c4dc85a53d3 100644 --- a/api/current.txt +++ b/api/current.txt @@ -7160,6 +7160,7 @@ package android.bluetooth.le { public static final class ScanSettings.Builder { ctor public ScanSettings.Builder(); method public android.bluetooth.le.ScanSettings build(); + method public android.bluetooth.le.ScanSettings.Builder setCallbackType(int); method public android.bluetooth.le.ScanSettings.Builder setMatchMode(int); method public android.bluetooth.le.ScanSettings.Builder setNumOfMatches(int); method public android.bluetooth.le.ScanSettings.Builder setReportDelay(long); diff --git a/core/java/android/bluetooth/le/ScanSettings.java b/core/java/android/bluetooth/le/ScanSettings.java index 4eeb577a1deae..d61662469b6c3 100644 --- a/core/java/android/bluetooth/le/ScanSettings.java +++ b/core/java/android/bluetooth/le/ScanSettings.java @@ -249,9 +249,7 @@ public final class ScanSettings implements Parcelable { * * @param callbackType The callback type flags for the scan. * @throws IllegalArgumentException If the {@code callbackType} is invalid. - * @hide */ - @SystemApi public Builder setCallbackType(int callbackType) { if (!isValidCallbackType(callbackType)) {