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

Commit 1dd09249 authored by William Escande's avatar William Escande
Browse files

AdvertiseManager: Remove impossible null case

mService is set in constructor and come from a `this`. It is final and
can never be null

Flag: Exempt, dead code removal
Bug: 318461868
Test: m com.android.btservices
Change-Id: I3cd524935bbe686e62e0367982e7384b56b5c2f6
parent b1aef0fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -231,7 +231,7 @@ public class AdvertiseManager {

        int appUid = Binder.getCallingUid();
        String packageName = null;
        if (mService != null && mService.getPackageManager() != null) {
        if (mService.getPackageManager() != null) {
            packageName = mService.getPackageManager().getNameForUid(appUid);
        }
        if (packageName == null) {