From ce8268b40f35b0756b961ce64934821955c3899c Mon Sep 17 00:00:00 2001 From: Quildra Date: Fri, 1 Aug 2025 07:54:41 +0100 Subject: [PATCH] feat: implement decoupled UI architecture with Material 3 FAB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Create FloatingUIActivity with true Material 3 FloatingActionButton - Implement Binder communication between UI Activity and Service - Remove UI handling from ScreenCaptureService (now pure background service) - Add proper Material 3 animations and haptic feedback - Update MainActivity to launch FloatingUIActivity on capture start - Register FloatingUIActivity in AndroidManifest with transparent theme Architecture: FloatingUIActivity (Compose UI) ↔ Binder ↔ ScreenCaptureService (Detection) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .idea/deploymentTargetSelector.xml | 2 +- UI_MODERNIZATION_TASKS.md | 187 ++++++ app/src/main/AndroidManifest.xml | 9 + .../pokegoalshelper/MainActivity.kt | 11 + .../pokegoalshelper/ScreenCaptureService.kt | 49 +- .../ui/FloatingActionButtonUI.kt | 580 ++++++++++++++++++ .../pokegoalshelper/ui/FloatingUIActivity.kt | 368 +++++++++++ test_images/captured_screen_1753995229336.jpg | Bin 0 -> 312816 bytes test_images/shiny_test.jpg | Bin 0 -> 568327 bytes 9 files changed, 1196 insertions(+), 10 deletions(-) create mode 100644 UI_MODERNIZATION_TASKS.md create mode 100644 app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingActionButtonUI.kt create mode 100644 app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingUIActivity.kt create mode 100644 test_images/captured_screen_1753995229336.jpg create mode 100644 test_images/shiny_test.jpg diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index 64085ab..ac3a004 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,7 +4,7 @@