Skip to content

Commit

Permalink
Update RecentsGestureHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyphrio authored Sep 7, 2024
1 parent 7963659 commit 880398c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import com.android.launcher3.Utilities
class RecentsGestureHandler(context: Context) : GestureHandler(context) {

override suspend fun onTrigger(launcher: LawnchairLauncher) {
val app = context.lawnchairApp
val app = launcher.lawnchairApp
if (!app.isAccessibilityServiceBound()) {
val intent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
Expand All @@ -58,7 +58,7 @@ class RecentsGestureHandler(context: Context) : GestureHandler(context) {
}
return
}
launcher.lawnchairApp.performGlobalAction(AccessibilityService.GLOBAL_ACTION_RECENTS)
app.performGlobalAction(AccessibilityService.GLOBAL_ACTION_RECENTS)
}
}

0 comments on commit 880398c

Please sign in to comment.