Niagara-Issues icon indicating copy to clipboard operation
Niagara-Issues copied to clipboard

Double tap to lock screen

Open 8bitPit opened this issue 8 years ago • 54 comments

This is issue is open for discussion & new ideas.

Implementing the screen lock feature is a bit problematic, because:

  1. It requires an accessibility service (for devices not running Android P)
  2. Where do you want to double tap? Maybe the user has a full list of favorites, so you the only free space is at the top. However, that’s hard to reach. Tapping on an app seems like another option, BUT: measuring a double tap requires waiting for a short amount of time after a single tap to differentiate between the two taps. In other words: you would have a delay (about 500ms) every time you open an app.

8bitPit avatar Sep 04 '18 20:09 8bitPit

Opened #68 for the gesture bar I was talking about a while back. Could have screen lock as either a double tap / long-press option, or as a dedicated button at the side of the bar alá Pie's rotation lock icon.

jakcharvat avatar Sep 05 '18 12:09 jakcharvat

How about double tap nav bar similar to the feature in some custom ROMs? Or double tap home screen or back button?

krishnivas avatar Sep 20 '18 08:09 krishnivas

@krishnivas, unfortunately I have no control over the navigation bar.

8bitPit avatar Sep 20 '18 10:09 8bitPit

How about a double tap on the alphabet navigation? Should be able to react to a tap immediately and wait for a second tap, so rather than waiting 500ms before opening an app (as mentioned initially), it would be jump to alphabet spot and wait 500ms after for a tap in the same spot on alphabet, where a tap on an app, or different spot in the alphabet is just another single tap? I don't know if that's possible, but just a suggestion of what I think might be a solution.

juegomeister avatar Oct 03 '18 11:10 juegomeister

@krishnivas

Or double tap home screen or back button?

Oh sorry, missed that. I believe that would be the best way to implement double tap to sleep!

8bitPit avatar Oct 04 '18 09:10 8bitPit

If you end up implementing this, try to use Nova launcher's implementation where you let the user select the way to lock the screen, like using root so the fingerprint sensor will still work after the lock with double tap

Sventra avatar Oct 04 '18 21:10 Sventra

i love the soft lock. if nothing else, it saves the hardware from breaking, which always will happen with time.

missed it from one plus when I had to move forward (it's still my backup phone) and now i miss it from accessibility options on pie (had to downgrade phone, reason why i found Niagara).

and i believe it would be a great addition to Niagara... but...

only if done by oss community or another Dev on the team.

i'm glad to see you find this problematic to implement, because it is. too much. it would remove focus from more important features and bugs.

if we need it so much, people, just use another app for it, already! here's a couple of suggestions: X home bar or https://play.google.com/store/apps/details?id=com.simi.screenlock

as for how to implement it, copy from the x. gestures or even buttons on the bottom. it might make sense to eventually replace the navigation bar, Android should let launchers customize it in the future, eventually.

cauerego avatar Oct 17 '18 09:10 cauerego

Double tap to home screen or back button is nice idea.

nidnme avatar Oct 21 '18 14:10 nidnme

Double tap is like double click on pc, so amount between 300ms and 500ms should be enough. Better place for me to tap is home page where there are no icons. UI on my lg g6 does so.

fante76 avatar Oct 23 '18 21:10 fante76

How about make floating button to lock, not real double tap but i think it's less problematic and easier than double tap ??

mcimam avatar Nov 17 '18 12:11 mcimam

I am on custom ROM, so just an option to double tap on empty space to launch custom shortcut would do. Later you can implement accessibility service, if you wish.

rituraj22 avatar Nov 27 '18 08:11 rituraj22

@cauerego So how about those who don't have the ram to run a bunch of background apps? It's easier to just have one.

Sent from my TETRA using FastHub

androidacy-user avatar Jan 07 '19 05:01 androidacy-user

@imam123ci This would work great, @8bitPit

Sent from my TETRA using FastHub

androidacy-user avatar Jan 07 '19 05:01 androidacy-user

@colbycdev funny you say that now. #117 https://github.com/8bitPit/Niagara-Issues/issues/117#issuecomment-451783115

however, i think i was both pretty clear i do want the soft lock and that it should never become a priority for such an app with only 1 dev. 4 months in, look at how much was done (quite a lot) and how many features were added.

finally, there's a mid range of people today, who will become low end soon enough, who are able to benefit from Android pie native soft lock.

cauerego avatar Jan 07 '19 06:01 cauerego

There are some UXes where double tap on the status bar locks the screen. Asus UX is an example. So tapping on the top of the screen, above the clock shouldn't be an issue.

usbeehu avatar Feb 10 '19 12:02 usbeehu

@bala7s It shouldn't be but it's hard to reach on most devices. Instead of reaching to the top, I would feel more comfortable to turn it off with the power button.

8bitPit avatar Feb 15 '19 11:02 8bitPit

@8bitPit First of all nice work! Just a comment about it, for some LG users the power button is behind of some devices and actually the double tap it is a time savior to lock off the screen. I read some comments above about double tap in the alphabetic navigation if you consider this won't affect the UX

kmbrc5 avatar Feb 27 '19 14:02 kmbrc5

@bala7s yeah, sure, maybe for small devices, but aiming the status bar is going against the flow of the market, since the current trend is tall phones with 18:9 aspect ratio.

I'm no expert in app development, let alone programming, but couldn't @8bitpit write an algorithm code that determines the safe spots for locking based on the device's aspect ratio and number of favourite apps (length of the favourite apps list)?

I wonder how laborious would that be, if possible at all.

bluemonday91 avatar Feb 28 '19 21:02 bluemonday91

I think that is good idea. And will be the one as the best launcher, because can be helpful for smartphone which is broken at power button. There are many smartphone when using so long time than so hot, and than the power button is can not be used. So, double touch to lock screen and turn off device is so great idea.

Dedisurya avatar Mar 11 '19 02:03 Dedisurya

I hope niagara launcher has a display shutdown feature by providing a padlock symbol on the home screen

paijojo avatar Mar 30 '19 22:03 paijojo