diff options
author | Sal Savage <salsavage@google.com> | 2022-01-27 15:40:41 -0800 |
---|---|---|
committer | Sal Savage <salsavage@google.com> | 2022-01-28 12:36:44 -0800 |
commit | 1583a64b2db4ff34676380b2aa020f1441847d56 (patch) | |
tree | f0f304ac660d40d04e97676ce0b444d9b3e0e082 /framework/java/android/bluetooth/BluetoothHeadsetClient.java | |
parent | 22c1d198b6135bc2aa2ef7c271e93dd52b872c74 (diff) |
The BluetoothHeadsetClient connection action no longer matches manifest
This change changes the name back to what it should have been and allows
the existing manifest content making the broadcast a protected broadcast
still work as is.
Tag: #refactor
Bug: 161145287
Test: atest BluetoothInstrumentationTests
Change-Id: Ieffe7da80d3ebab36af7a8e71e7453f3a3e8c4a1
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothHeadsetClient.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothHeadsetClient.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothHeadsetClient.java b/framework/java/android/bluetooth/BluetoothHeadsetClient.java index 104958962b..1a7b697064 100644 --- a/framework/java/android/bluetooth/BluetoothHeadsetClient.java +++ b/framework/java/android/bluetooth/BluetoothHeadsetClient.java @@ -14,7 +14,9 @@ * limitations under the License. */ package android.bluetooth; + import static android.bluetooth.BluetoothUtils.getSyncTimeout; + import android.annotation.NonNull; import android.annotation.RequiresPermission; import android.annotation.SdkConstant; @@ -32,7 +34,9 @@ import android.os.IBinder; import android.os.RemoteException; import android.util.CloseGuard; import android.util.Log; + import com.android.modules.utils.SynchronousResultReceiver; + import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeoutException; @@ -76,7 +80,7 @@ public final class BluetoothHeadsetClient implements BluetoothProfile, AutoClose }) @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_CONNECTION_STATE_CHANGED = - "android.bluetooth.headsetprofile.action.CONNECTION_STATE_CHANGED"; + "android.bluetooth.headsetclient.profile.action.CONNECTION_STATE_CHANGED"; /** * Intent sent whenever audio state changes. * |