Remove unused references to android.app.ActivityThread in

BluetoothAdapter

Tag: #feature
Bug: 210468546
Test: Manual
Change-Id: Ia473afe6bcf4d0824e2fd2c6ca2ce562d0ecbde3
This commit is contained in:
Rahul Sabnis
2021-12-13 14:32:46 -08:00
parent 6a8b9f3964
commit ac6e0c91b3

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;
@@ -991,7 +990,6 @@ public final class BluetoothAdapter {
if (!isBleScanAlwaysAvailable()) {
return false;
}
String packageName = ActivityThread.currentPackageName();
try {
return mManagerService.disableBle(mAttributionSource, mToken);
} catch (RemoteException e) {
@@ -1038,7 +1036,6 @@ public final class BluetoothAdapter {
if (!isBleScanAlwaysAvailable()) {
return false;
}
String packageName = ActivityThread.currentPackageName();
try {
return mManagerService.enableBle(mAttributionSource, mToken);
} catch (RemoteException e) {