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

Commit 0041d0b7 authored by Hui Yu's avatar Hui Yu
Browse files

acquireWakeLock has an additional parameter IWakeLockCallback.

That can take a nullptr value.

Bug: 213925462
Test: build and run.
Change-Id: I62c4db2860ce078553ba7794b28423aac0152847
parent c84c1c2d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -62,7 +62,8 @@ bool AWakeLock::acquire() {
            binder::Status status = mPowerManager->acquireWakeLock(
                    binder, POWERMANAGER_PARTIAL_WAKE_LOCK,
                    String16("AWakeLock"), String16("media"),
                    {} /* workSource */, {} /* historyTag */, -1 /* displayId */);
                    {} /* workSource */, {} /* historyTag */, -1 /* displayId */,
                    nullptr /* callback */);
            IPCThreadState::self()->restoreCallingIdentity(token);
            if (status.isOk()) {
                mWakeLockToken = binder;