Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4eafd863 authored by Etienne Ruffieux's avatar Etienne Ruffieux Committed by Presubmit Automerger Backend
Browse files

[automerge] Removed unused checks in BluetoothManagerService 2p: 109e1bff

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/17001743

Bug: 216497194
Change-Id: I37eeffb4a402ce1fb29aeb38583df94c6ff1b181
parents 92460536 109e1bff
Loading
Loading
Loading
Loading
+6 −16
Original line number Diff line number Diff line
@@ -571,23 +571,13 @@ public class BluetoothManagerService extends IBluetoothManager.Stub {

        int systemUiUid = -1;
        // Check if device is configured with no home screen, which implies no SystemUI.
        boolean noHome = context.getResources()
                .getBoolean(Resources.getSystem().getIdentifier(
                "config_noHomeScreen", "bool", "android"));
        if (!noHome) {
        try {
            systemUiUid = mContext.createContextAsUser(UserHandle.SYSTEM, 0)
                .getPackageManager()
                .getPackageUid("com.android.systemui",
                        PackageManager.PackageInfoFlags.of(PackageManager.MATCH_SYSTEM_ONLY));
            } catch (PackageManager.NameNotFoundException e) {
                Log.w(TAG, "SystemUi uid not found", e);
            }
        }
        if (systemUiUid >= 0) {
            Log.d(TAG, "Detected SystemUiUid: " + Integer.toString(systemUiUid));
        } else {
            // Some platforms, such as wearables do not have a system ui.
        } catch (PackageManager.NameNotFoundException e) {
            Log.w(TAG, "Unable to resolve SystemUI's UID.");
        }
        mSystemUiUid = systemUiUid;