Skip to content

Instantly share code, notes, and snippets.

@mumayank
Created December 20, 2019 08:23
Show Gist options
  • Save mumayank/9d864ecf15bc408f2b3a7ab7acc44a14 to your computer and use it in GitHub Desktop.
Save mumayank/9d864ecf15bc408f2b3a7ab7acc44a14 to your computer and use it in GitHub Desktop.
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