Description
Summary:
First reported in https://groups.google.com/d/msg/gpstest_android/wlIi9jBVncQ/ruDtik8MBwAJ.
If you check "Settings->Display->Keep Screen On", the screen should stay on indefinitely when the app is in the foreground. Currently that setting is ignored and the screen will timeout and turn off.
This is a side-effect of moving from the tabbed views to the navigation drawer - I forgot to re-implement this in GpsTestActivity.checkKeepScreenOn()
after the change, as it previously relied on setting an attribute on the ViewPager, which we no longer use.
Steps to reproduce:
- Make sure "Settings->Display->Keep Screen On" is checked
- With the device unplugged start the app and wait for the screen to timeout
Expected behavior:
If "Settings->Display->Keep Screen On" is checked, the screen should never timeout.
Observed behavior:
The screen currently times out even when "Settings->Display->Keep Screen On" is checked.
Device and Android version:
OnePlus 5T, Oreo 8.0 stock