Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.
refactor: increase screen read flash animation duration to 650ms and remove unnecessary volatile modifier
Rishabh Bajpaib2cc9bf154e7
diff --git a/app/src/main/java/com/gotcha/ui/ScreenReadFlashOverlay.kt b/app/src/main/java/com/gotcha/ui/ScreenReadFlashOverlay.ktindex 01cb45b..4182f1b 100644--- a/app/src/main/java/com/gotcha/ui/ScreenReadFlashOverlay.kt+++ b/app/src/main/java/com/gotcha/ui/ScreenReadFlashOverlay.kt@@ -15,7 +15,7 @@ import com.gotcha.ui.theme.overlaySkin/*** Flashes a brief accent border around the screen after an agent screen read.- * Fire-and-forget: [pulse] adds a non-touchable window, animates ~400 ms, then+ * Fire-and-forget: [pulse] adds a non-touchable window, animates ~650 ms, then* removes it. No-op without the "Display over other apps" permission.*/class ScreenReadFlashOverlay(context: Context) {@@ -25,7 +25,6 @@ class ScreenReadFlashOverlay(context: Context) {private val windowManager: WindowManagerget() = appContext.getSystemService(Context.WINDOW_SERVICE) as WindowManager- @Volatileprivate var view: ScreenReadFlashView? = nullprivate var animator: ValueAnimator? = nulldiff --git a/app/src/main/java/com/gotcha/ui/ScreenReadFlashView.kt b/app/src/main/java/com/gotcha/ui/ScreenReadFlashView.ktindex 061707d..b5af5ef 100644--- a/app/src/main/java/com/gotcha/ui/ScreenReadFlashView.kt+++ b/app/src/main/java/com/gotcha/ui/ScreenReadFlashView.kt@@ -12,7 +12,7 @@ import kotlin.math.pow/*** One-shot "the screen was read" pulse: an accent rounded-rect border with a- * blurred glow that ramps in and out over ~400 ms. The owning controller removes+ * blurred glow that ramps in and out over ~650 ms. The owning controller removes* the window on animation end — this view only draws. Deliberately drawn only* AFTER a capture has finished so it never appears in a screenshot.*/