PhilKes / NotallyX

Minimalistic Android note taking App | Notally, but eXtended.
GNU General Public License v3.0
70 stars 1 forks source link

Unlock widget by tapping on it #123

Open theRoboxx opened 1 week ago

theRoboxx commented 1 week ago

Describe the solution you'd like Would it be possible to unlock only the locked widget list by tapping on it without having to open the app in the background?

Additional context Extra Options: Unlock for X Minutes

PhilKes commented 6 days ago

I'm not 100% sure if you can show a BiometricPrompt outside of an Activity (clicking the locked widget launches an Intent which of course has to open the app itself to show the unlock prompt). Also this could be quite tedious, if I understand you correctly, you unlock your phone, have your locked widget, click on it, a BiometricPrompt is shown to unlock only the widget, if you then open the NotallyX app you would have to unlock via another BiometricPrompt?

I definetely wanted to improve/add more settings to when the app and its widgets are locked again. Currently they are only locked if your phone was locked in between. A time-based lock mechanism is obviously one possibility, I just wanted to wait for some feedback on that

theRoboxx commented 3 days ago

I'm not 100% sure if you can show a BiometricPrompt outside of an Activity (clicking the locked widget launches an Intent which of course has to open the app itself to show the unlock prompt). Also this could be quite tedious, if I understand you correctly, you unlock your phone, have your locked widget, click on it, a BiometricPrompt is shown to unlock only the widget, if you then open the NotallyX app you would have to unlock via another BiometricPrompt?

I definetely wanted to improve/add more settings to when the app and its widgets are locked again. Currently they are only locked if your phone was locked in between. A time-based lock mechanism is obviously one possibility, I just wanted to wait for some feedback on that

Yes, you got that right. I wrote the request mainly because the widget didn't unlock by tipping on it after I installed the update. Then I recreated the widget and it works. I don't need to open the app to view the widget because the widget opens the app after clicking on it(Which didn't work before). Nevertheless the idea would be an enhancement, if possible.