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

Commit ce679eba authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Pass Binder token to ISuspendControlServiceInternal#enableAutosuspend"

parents 679b589a 5897e987
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);
    }

    {