Skip to content

Commit f8c10cd

Browse files
committed
Add support for ProShot
1 parent e31e4ea commit f8c10cd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/src/main/java/com/kylecorry/intervalometer/infrastructure/services/IntervalometerService.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class IntervalometerService : AccessibilityService() {
2222
private val knownShutterButtons = listOf(
2323
"com.android.camera:id/shutter_button",
2424
"com.android.camera2:id/shutter_button",
25-
"com.google.android.GoogleCamera:id/shutter_button"
25+
"com.google.android.GoogleCamera:id/shutter_button",
26+
"com.riseupgames.proshot2:id/cameraButton"
2627
)
2728

2829
private var stopReceiver = object : BroadcastReceiver() {
@@ -31,7 +32,7 @@ class IntervalometerService : AccessibilityService() {
3132
Notify.cancel(this@IntervalometerService, 2)
3233
}
3334
}
34-
35+
3536
private var secondsUntilNextPhoto = 0L
3637

3738
private val timer = CoroutineTimer {
@@ -64,6 +65,8 @@ class IntervalometerService : AccessibilityService() {
6465
)
6566
) {
6667
restartTimer()
68+
} else {
69+
println(event?.source?.viewIdResourceName)
6770
}
6871
}
6972

0 commit comments

Comments
 (0)