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

Commit 2b1d1ca7 authored by Annie Chin's avatar Annie Chin
Browse files

Use .isTouchExplorationEnabled to check if accessibility is enabled.

Change-Id: Ie2254f6499a0f4c4e5fb0a6bd4ea4c5a9ad5a8b2
parent aa2de7b7
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -727,9 +727,10 @@ public class StopwatchFragment extends DeskClockFragment
            if (mLapsAdapter.getCount() > 0) {
                updateCurrentLap(totalTime);
            }
            mTime.postDelayed(mTimeUpdateThread, mAccessibilityManager == null
                    ? STOPWATCH_REFRESH_INTERVAL_MILLIS
                    : STOPWATCH_ACCESSIBILTY_REFRESH_INTERVAL_MILLIS);
            mTime.postDelayed(mTimeUpdateThread, mAccessibilityManager != null &&
                    mAccessibilityManager.isTouchExplorationEnabled()
                    ? STOPWATCH_ACCESSIBILTY_REFRESH_INTERVAL_MILLIS
                    : STOPWATCH_REFRESH_INTERVAL_MILLIS);
        }
    };