MaxLock icon indicating copy to clipboard operation
MaxLock copied to clipboard

Add gesture locking

Open ghost opened this issue 9 years ago • 19 comments

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.

ghost avatar Mar 09 '16 05:03 ghost

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 :)

Maxr1998 avatar Mar 09 '16 08:03 Maxr1998

You may also want to look at the theme manager's application on the Gesture View, I did not touch it at all.

ghost avatar Mar 09 '16 16:03 ghost

@Rijul-Ahuja Theme manager isn't implemented, tbh.. So you don't have to change anything about it ;)

Maxr1998 avatar Mar 09 '16 18:03 Maxr1998

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.

ghost avatar Mar 18 '16 07:03 ghost

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.

Maxr1998 avatar Mar 18 '16 14:03 Maxr1998

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.

Maxr1998 avatar Mar 20 '16 21:03 Maxr1998

Perfect, thanks!

Maxr1998 avatar Mar 21 '16 20:03 Maxr1998

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..

Maxr1998 avatar Mar 25 '16 19:03 Maxr1998

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?

ghost avatar Mar 25 '16 19:03 ghost

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?

Maxr1998 avatar Mar 25 '16 19:03 Maxr1998

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.

ghost avatar Mar 25 '16 19:03 ghost

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 :)

Maxr1998 avatar Mar 25 '16 19:03 Maxr1998

@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.

Maxr1998 avatar Apr 13 '16 19:04 Maxr1998

Also, could you tell me which files you took from the AOSP? Only the ones with the copyright?

Maxr1998 avatar Apr 13 '16 19:04 Maxr1998

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?

Maxr1998 avatar Apr 13 '16 19:04 Maxr1998

Sorry, I totally forgot about this commit.

  1. Manual works, I don't mind. If there is a link, please link to fb.com/rijul.ahuja
  2. 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
  3. 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.

ghost avatar Apr 14 '16 14:04 ghost

  1. Sure, will add that link.
  2. Thanks, then I'll mention them in the credits.
  3. 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.

Maxr1998 avatar Apr 15 '16 15:04 Maxr1998

Any movement on this, Max?

ghost avatar May 06 '16 19:05 ghost

Yeah, I will add it next when I find time for MaxLock again

Maxr1998 avatar May 06 '16 19:05 Maxr1998