MaxLock
MaxLock copied to clipboard
Add gesture locking
Hi Max,
As discussed on XDA, please check this pull request. Some points to note are
- In translated strings.xml, I have added the untranslated strings directly, to allow compilation.
- I have used a non AOSP GestureOverlayView.java because the AOSP version clears the gesture after it is drawn.
You may want to refactor some stuff as per your preferences, but I have tried to do the best I could. Thanks for your time.
Very clean code, thanks! I'll look through it in detail in the next days, depending how much time I have; then I'll merge and reformat it a little to my needs :)
You may also want to look at the theme manager's application on the Gesture View, I did not touch it at all.
@Rijul-Ahuja Theme manager isn't implemented, tbh.. So you don't have to change anything about it ;)
Max, just thought I should mention this, the gesture file isn't encrypted at all, unlike the other modes. If you figure out a way to encrypt the gesture (that is, not just the name, but the actual gesture itself), do let me know, I will implement it in the gesture lockscreen module.
Thanks! I'll see if I can do it on my own :) I will work on fixing a few things in MaxLock now, and then I'll merge your PR.
Could you take a look at my line note? Also, could you remove the alternate translations? I think the translators should pick the new strings out on their own.
Perfect, thanks!
I decided I won't merge this before next release. I want to have the new release as stable as possible, and out as soon as possible..
Sure, it is your app. Just put up a comment here when you are done so I get to know. PS : Are your translators volunteers you found, or did they find you?
Of course. I will just tell here. Actually, both. Many are just users who asked to translate, but I also asked one or two of my users to do the translations. BTW, it seems I broke this PR with my last changes (sorry!). Could you take a look at it?
Can you tell me how to look at it? I am not well versed with git. A general idea of what to Google will do, too.
Well, you have to adapt my changes to your proposes. So you have to pull my updates from my git and then fix the conflicts. I can also do it, but it would be very nice if you could do it :)
@Rijul-Ahuja Would it be ok for you if I merged this manually? You won't be listed as contributor in the GitHub stats then, but I'll include you in the about screen as sole creator of Gesture lockscreen.
Also, could you tell me which files you took from the AOSP? Only the ones with the copyright?
And another question, what is the reason for first extending LockGestureView from GestureOverlayView, then GestureActivityView from LockGestureView? Can't I just merge the non-AOSP views?
Sorry, I totally forgot about this commit.
- Manual works, I don't mind. If there is a link, please link to fb.com/rijul.ahuja
- No files from AOSP, they are from Temasek. https://github.com/temasek/android_frameworks_base/commit/d89f57baa936d6c2114e1a3726ca4f4f8f2b2437 and https://github.com/temasek/android_packages_apps_Settings/commit/8fea9e778259df367066c2e74708dedc6498ff87
- LockGestureView is used in the GestureSetupFragment and GestureActivityView is used in the lock activity, because they use different methods of authentication. (GestureSetupFragment saves in the gesture file, while the GestureActivityView calls the parent activity to match the gesture, like you do with the knock code and stuff, using an authenticationSucceededListener).
Can't I just merge the non-AOSP views? I don't understand what this means.
- Sure, will add that link.
- Thanks, then I'll mention them in the credits.
- Ah, I see, silly me. Then of course you need different views.
Forget about my other request, basically wanted to merge fragment and activity code, which doesn't work.
Any movement on this, Max?
Yeah, I will add it next when I find time for MaxLock again