Skip to content

Commit

Permalink
Add support for ProShot
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Oct 19, 2024
1 parent e31e4ea commit f8c10cd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class IntervalometerService : AccessibilityService() {
private val knownShutterButtons = listOf(
"com.android.camera:id/shutter_button",
"com.android.camera2:id/shutter_button",
"com.google.android.GoogleCamera:id/shutter_button"
"com.google.android.GoogleCamera:id/shutter_button",
"com.riseupgames.proshot2:id/cameraButton"
)

private var stopReceiver = object : BroadcastReceiver() {
Expand All @@ -31,7 +32,7 @@ class IntervalometerService : AccessibilityService() {
Notify.cancel(this@IntervalometerService, 2)
}
}

private var secondsUntilNextPhoto = 0L

private val timer = CoroutineTimer {
Expand Down Expand Up @@ -64,6 +65,8 @@ class IntervalometerService : AccessibilityService() {
)
) {
restartTimer()
} else {
println(event?.source?.viewIdResourceName)
}
}

Expand Down

0 comments on commit f8c10cd

Please sign in to comment.