Merge "Remove unused references to android.app.ActivityThread in BluetoothAdapter" am: 202ab8ff95

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920977

Change-Id: Ic36a045e695e857ed70c84dc7f84e0fe75891a99
This commit is contained in:
Rahul Sabnis
2021-12-14 21:56:47 +00:00
committed by Automerger Merge Worker

View File

@@ -29,7 +29,6 @@ import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
import android.annotation.SuppressLint;
import android.annotation.SystemApi;
import android.app.ActivityThread;
import android.app.PropertyInvalidatedCache;
import android.bluetooth.BluetoothDevice.Transport;
import android.bluetooth.BluetoothProfile.ConnectionPolicy;
@@ -990,7 +989,6 @@ public final class BluetoothAdapter {
if (!isBleScanAlwaysAvailable()) {
return false;
}
String packageName = ActivityThread.currentPackageName();
try {
return mManagerService.disableBle(mAttributionSource, mToken);
} catch (RemoteException e) {
@@ -1037,7 +1035,6 @@ public final class BluetoothAdapter {
if (!isBleScanAlwaysAvailable()) {
return false;
}
String packageName = ActivityThread.currentPackageName();
try {
return mManagerService.enableBle(mAttributionSource, mToken);
} catch (RemoteException e) {