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

Commit 35d8ad01 authored by Hiroki Sato's avatar Hiroki Sato Committed by Android (Google) Code Review
Browse files

Merge "Don't call setPowerBoost directly from native code" into main

parents ae71424c 6bc3a2cc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -116,10 +116,8 @@ void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t
                }
                gLastEventTime[eventType] = eventTime;
            }

            // Tell the power HAL when user activity occurs.
            setPowerBoost(Boost::INTERACTION, 0);
        }
        // Note that the below PowerManagerService method may call setPowerBoost.

        JNIEnv* env = AndroidRuntime::getJNIEnv();