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

Commit 530fbd2d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Pass Binder token to ISuspendControlServiceInternal#enableAutosuspend"

parents e71f30f0 c07743a0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -178,9 +178,10 @@ sp<system::suspend::internal::ISuspendControlServiceInternal> getSuspendControlI
void enableAutoSuspend() {
    static bool enabled = false;
    if (!enabled) {
        static sp<IBinder> autosuspendClientToken = new BBinder();
        sp<system::suspend::internal::ISuspendControlServiceInternal> suspendControl =
                getSuspendControlInternal();
        suspendControl->enableAutosuspend(&enabled);
        suspendControl->enableAutosuspend(autosuspendClientToken, &enabled);
    }

    {