OSDN Git Service

Correct typo in BluetoothSap binder
authorugo_yu <ugo_yu@htc.com>
Mon, 30 May 2016 12:56:28 +0000 (20:56 +0800)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 16 Jun 2016 21:02:39 +0000 (21:02 +0000)
This patch fixed IBluetoothSap typo as IBluetoothMap in doBind.

Fixes: 29025598
Change-Id: Ieab3d1583839db0a33b1cfa4d2de1f27c9cb3fe4

core/java/android/bluetooth/BluetoothSap.java

index 014cb22..e70c936 100644 (file)
@@ -138,7 +138,7 @@ public final class BluetoothSap implements BluetoothProfile {
     }
 
     boolean doBind() {
-        Intent intent = new Intent(IBluetoothMap.class.getName());
+        Intent intent = new Intent(IBluetoothSap.class.getName());
         ComponentName comp = intent.resolveSystemService(mContext.getPackageManager(), 0);
         intent.setComponent(comp);
         if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,