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

Commit bbba38fc authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "BatteryStats: explicitly copy the wakeup reasons" am: da20982f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1508743

Change-Id: I73b6c1ecc37ca194a74db1e478c5f0a3764e6548
parents cb7b52ec da20982f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ public:
        {
            std::unique_lock<std::mutex> reasonsLock(mReasonsMutex, std::defer_lock);
            if (reasonsLock.try_lock() && mWakeupReasons.empty()) {
                mWakeupReasons = std::move(wakeupReasons);
                mWakeupReasons = wakeupReasons;
                reasonsCaptured = true;
            }
        }