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

Commit deba83c0 authored by Chenjie Yu's avatar Chenjie Yu Committed by Android (Google) Code Review
Browse files

Merge "fix multiple activation across boot"

parents afe83a67 4841d264
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -107,7 +107,8 @@ void MetricProducer::activateLocked(int activationTrackerIndex, int64_t elapsedT
    if (it == mEventActivationMap.end()) {
        return;
    }
    if (mActivationType == MetricActivation::ACTIVATE_ON_BOOT) {
    if (mActivationType == MetricActivation::ACTIVATE_ON_BOOT &&
        it->second.state == ActivationState::kNotActive) {
        it->second.state = ActivationState::kActiveOnBoot;
        return;
    }