Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support trick_doubleTapLockScreen and trick_doubleTapStatusBar on android 10 #8

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

evermind-zz
Copy link

@evermind-zz evermind-zz commented Dec 12, 2022

I wanted to add support for trick_doubleTapLockScreen and trick_doubleTapStatusBar to android 10.

I added some helper classes to abstract the code and ease the development for new features.

class FeatureFactory

  • create instances of features if available on a given android platform

interface Feature

  • A feature is the implementation of an modification you want to do with Xposed.
  • the same feature could be implemented for a different android sdk in another file

So the original code for trick_doubleTapStatusBar and trick_doubleTapLockScreen
for SDK >= 31 was moved to:
com/darkeyes/tricks/features/DoubleTapStatusBarOrLockScreenSdk31AndHigher.java

And trick_quick_pulldown is now in:
com/darkeyes/tricks/features/QuickPullDownFeatureSdk31AndHigher.java

trick_doubleTapStatusBar and trick_doubleTapLockScreen for Android 10 is here:
com/darkeyes/tricks/features/DoubleTapStatusBarOrLockScreenSdk29.java

The code is only tested on Android 10. I've no idea if I messed something up.

Please let me know. Thanks

… trick_quickPulldown

As I wanted to add support trick_doubleTapLockScreen and trick_doubleTapStatusBar
on android 10 I added this framework to abstract the code:

class FeatureFactory
====================
- create instances of features if available on a given android platform

interface Feature
=================
- A feature is the implementation of an modification you want to do with Xposed.
- the same feature could be implemented for a different android sdk in another file
…tingsActivity

Done for:
- trick_double_tap_lockscreen
- trick_double_tap_statusbar
- trick_quick_pulldown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant