sweakpl / qralarm-android

QRAlarm is an Android alarm clock application that lets the user turn off alarms by scanning the QR Code.
GNU General Public License v3.0
130 stars 12 forks source link

Time setting must be "flingable" #14

Closed Marmotian closed 1 year ago

Marmotian commented 2 years ago

Setting the alarm is very motion intensive because you can't use a "fling" gesture to cause the setting to change quickly. The worst case (changing the minutes by 30) takes a minimum of 8 full-screen swipes on my phone.

Or, make it so you can tap the numbers to open a keyboard entry mode. Or both.

domportera commented 1 year ago

I tried forking and messing with this and found some difficulties in getting the "fling" to work properly or respond to different parameters in a predictable and intuitive way.

However in the meantime I just sped up the Minutes control. it's a little bit unwieldy, but imo it's preferred for the time being. I made a thoroughly under-tested build you can grab here if you're itching for it, but I can't say I recommend it. I'll be using it though.

I'm wondering what @sweakpl thinks of this sort of architecture for these sorts of changes. It's basically my first time in kotlin/android studio so forgive me for being somewhat crude

sweakpl commented 1 year ago

@domportera I've tried implementing the fling but it's been a harder task than I though it should be. The code responsible for the time picker is a modification of this gist: https://gist.github.com/vganin/a9a84653a9f48a2d669910fbd48e32d5

There are some suggestions from the author there but still, I couldn't find a way to get that functionality or I've just spent too little time on it.

domportera commented 1 year ago

I haven't gotten into depth of that code, but I submitted a pull request for an optional speed increase. Its presentation when the speed is increased is a bit janky, but it works. fixed that lol