8000 "Keep screen on" setting is broken · Issue #120 · barbeau/gpstest · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
"Keep screen on" setting is broken #120
Closed
@barbeau

Description

@barbeau

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:

  1. Make sure "Settings->Display->Keep Screen On" is checked
  2. 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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0