Skip to content

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.

1 participant