Created
December 20, 2019 08:23
-
-
Save mumayank/9d864ecf15bc408f2b3a7ab7acc44a14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FromHomeAccessibilityService : AccessibilityService() { | |
override fun onServiceConnected() { | |
super.onServiceConnected() | |
Helpers.openOlaApp(applicationContext) | |
Helpers.setFromHomeInOla(applicationContext, this) | |
} | |
override fun onInterrupt() {} | |
override fun onAccessibilityEvent(event: AccessibilityEvent?) { | |
Helpers.setSourceFromEventIfApplicable(event) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment