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

Commit 70358ec1 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "Revert "NuPlayer: use acquireWakeLockAsync in AWakeLock"" into tm-dev am: 71d536bf

parents efa004af 71d536bf
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -59,10 +59,11 @@ bool AWakeLock::acquire() {
        if (mPowerManager != NULL) {
            sp<IBinder> binder = new BBinder();
            int64_t token = IPCThreadState::self()->clearCallingIdentity();
            binder::Status status = mPowerManager->acquireWakeLockAsync(
            binder::Status status = mPowerManager->acquireWakeLock(
                    binder, POWERMANAGER_PARTIAL_WAKE_LOCK,
                    String16("AWakeLock"), String16("media"),
                    {} /* workSource */, {} /* historyTag */);
                    {} /* workSource */, {} /* historyTag */, -1 /* displayId */,
                    nullptr /* callback */);
            IPCThreadState::self()->restoreCallingIdentity(token);
            if (status.isOk()) {
                mWakeLockToken = binder;