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

Commit 0f1edd32 authored by Joy Babafemi's avatar Joy Babafemi Committed by Automerger Merge Worker
Browse files

DO NOT MERGE: Clear calling context when adding UWB default setting. am: fae54522

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

Change-Id: Ieb08764e6e100691dfb42bff58afb17c7c3bac6e
parents 0a0cb88b fae54522
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -236,7 +236,12 @@ public class UwbServiceImpl extends IUwbAdapter.Stub implements IBinder.DeathRec
            throw new IllegalStateException("No vendor service found!");
        }
        Log.i(TAG, "Retrieved vendor service");
        long token = Binder.clearCallingIdentity();
        try {
        mVendorUwbAdapter.setEnabled(mUwbInjector.isPersistedUwbStateEnabled());
        } finally {
          Binder.restoreCallingIdentity(token);
        }
        linkToVendorServiceDeath();
        return mVendorUwbAdapter;
    }