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

Commit c781b6e6 authored by Rupesh Bansal's avatar Rupesh Bansal Committed by Android (Google) Code Review
Browse files

Merge "Fix the timestamp from notifier to WakelockLogs" into main

parents 74db5616 b91d9333
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1064,9 +1064,9 @@ public class Notifier {
    private void notifyWakeLockListener(IWakeLockCallback callback, String tag, boolean isEnabled,
            int ownerUid, int ownerPid, int flags, WorkSource workSource, String packageName,
            String historyTag) {
        long currentTime = mInjector.currentTimeMillis();
        mHandler.post(() -> {
            if (mFlags.improveWakelockLatency()) {
                long currentTime = mInjector.currentTimeMillis();
                if (isEnabled) {
                    notifyWakelockAcquisition(tag, ownerUid, ownerPid, flags,
                            workSource, packageName, historyTag, currentTime);