From f8c10cd4b756b28d58f5a218065d07584531d5b0 Mon Sep 17 00:00:00 2001 From: Kyle Corry Date: Sat, 19 Oct 2024 17:25:55 -0400 Subject: [PATCH] Add support for ProShot --- .../infrastructure/services/IntervalometerService.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/kylecorry/intervalometer/infrastructure/services/IntervalometerService.kt b/app/src/main/java/com/kylecorry/intervalometer/infrastructure/services/IntervalometerService.kt index 9b1f47c..b96d1d5 100644 --- a/app/src/main/java/com/kylecorry/intervalometer/infrastructure/services/IntervalometerService.kt +++ b/app/src/main/java/com/kylecorry/intervalometer/infrastructure/services/IntervalometerService.kt @@ -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() { @@ -31,7 +32,7 @@ class IntervalometerService : AccessibilityService() { Notify.cancel(this@IntervalometerService, 2) } } - + private var secondsUntilNextPhoto = 0L private val timer = CoroutineTimer { @@ -64,6 +65,8 @@ class IntervalometerService : AccessibilityService() { ) ) { restartTimer() + } else { + println(event?.source?.viewIdResourceName) } }