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

Commit c496b431 authored by Ady Abraham's avatar Ady Abraham
Browse files

SF: fix a small typo on defaultTouchTimerValue

Change-Id: I81cb01e5e86abce2b64dc0711e4898d4da04e654
Test: presubmit
Bug: 314217419
parent b928c8de
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -92,12 +92,12 @@ void Scheduler::startTimers() {
    using namespace sysprop;
    using namespace sysprop;
    using namespace std::string_literals;
    using namespace std::string_literals;


    const int32_t defaultTouchTouchTimerValue =
    const int32_t defaultTouchTimerValue =
            FlagManager::getInstance().enable_fro_dependent_features() &&
            FlagManager::getInstance().enable_fro_dependent_features() &&
                    sysprop::enable_frame_rate_override(true)
                    sysprop::enable_frame_rate_override(true)
            ? 200
            ? 200
            : 0;
            : 0;
    if (const int32_t millis = set_touch_timer_ms(defaultTouchTouchTimerValue); millis > 0) {
    if (const int32_t millis = set_touch_timer_ms(defaultTouchTimerValue); millis > 0) {
        // Touch events are coming to SF every 100ms, so the timer needs to be higher than that
        // Touch events are coming to SF every 100ms, so the timer needs to be higher than that
        mTouchTimer.emplace(
        mTouchTimer.emplace(
                "TouchTimer", std::chrono::milliseconds(millis),
                "TouchTimer", std::chrono::milliseconds(millis),