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

Commit b8b20bd4 authored by Joy Babafemi's avatar Joy Babafemi Committed by Roshan Pius
Browse files

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

(Cherry-picked from sc-qpr branch)

Bug: 200346828
Bug: 212462949
Test: Manual
Change-Id: I12579263fe0edba16c20a8a152688cd671d66858
parent 63d94a4e
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;
    }