Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep app above lock screen #17

Open
geekyouup opened this issue Oct 23, 2014 · 0 comments
Open

Keep app above lock screen #17

geekyouup opened this issue Oct 23, 2014 · 0 comments

Comments

@geekyouup
Copy link
Owner

What steps will reproduce the problem?

  1. open app
  2. click power button
  3. click power button again

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
app version 6.0.4

Please provide any additional information below.

When training I use the stopwatch and put the phone in my pocket (after turing the screen off). I have a lock screen with pin security. It is REALLY inconvenient to insert the pin each time I want to see the stopwatch.
The stopwatch activity should be on top of the lock screen.

In com.geekyouup.android.ustopwatch.UltimateStopwatchActivity.onResume() add the following line:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);

Add a Setting to control the execution of this line (place the above line in an 'if' block).

This feature is really really useful. Currently I'm comiling this app with this modification myself. I would love to use the Google Play apk if this feature is included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant