From 13713da169ceaf2ffd81a77bba995efb57427b9e Mon Sep 17 00:00:00 2001 From: Quildra Date: Fri, 1 Aug 2025 07:56:07 +0100 Subject: [PATCH] fix: resolve compilation errors in decoupled UI architecture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix onBind method signature in ScreenCaptureService - Change triggerManualDetection to triggerDetection method call - Replace missing Material Icons with available alternatives: - FiberManualRecord → Circle (pokeball) - SelectAll → Apps (all items) - BugReport → Build (debug) - Sync → Refresh (processing) - CameraAlt → PhotoCamera (main button) - Fix Java type cast in FloatingActionButtonUI animation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../pokegoalshelper/ScreenCaptureService.kt | 2 +- .../pokegoalshelper/ui/FloatingActionButtonUI.kt | 2 +- .../pokegoalshelper/ui/FloatingUIActivity.kt | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt b/app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt index 8165377..7db373d 100644 --- a/app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt +++ b/app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt @@ -169,7 +169,7 @@ class ScreenCaptureService : Service() { Log.d(TAG, "✅ MVC architecture initialized") } - override fun onBind(intent: Intent?) = binder + override fun onBind(intent: Intent?): IBinder = binder // === Public API for FloatingUIActivity === diff --git a/app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingActionButtonUI.kt b/app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingActionButtonUI.kt index 30ed49e..3304f7a 100644 --- a/app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingActionButtonUI.kt +++ b/app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingActionButtonUI.kt @@ -455,7 +455,7 @@ class FloatingActionButtonUI( } // Configure animation set - animatorSet.playTogether(animators) + animatorSet.playTogether(animators as Collection) animatorSet.duration = ANIMATION_DURATION_MEDIUM animatorSet.interpolator = if (expand) OvershootInterpolator() else AccelerateDecelerateInterpolator() diff --git a/app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingUIActivity.kt b/app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingUIActivity.kt index c7f499f..b920efb 100644 --- a/app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingUIActivity.kt +++ b/app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingUIActivity.kt @@ -124,7 +124,7 @@ class FloatingUIActivity : ComponentActivity() { // === Communication with Service === private fun requestDetection() { - screenCaptureService?.triggerManualDetection() + screenCaptureService?.triggerDetection() Log.d(TAG, "Requested detection from service") } @@ -213,7 +213,7 @@ fun FloatingFABInterface( ) MenuFABItem( - icon = Icons.Default.FiberManualRecord, + icon = Icons.Default.Circle, label = "POKEBALL", containerColor = MaterialTheme.colorScheme.error, onClick = { @@ -225,7 +225,7 @@ fun FloatingFABInterface( ) MenuFABItem( - icon = Icons.Default.SelectAll, + icon = Icons.Default.Apps, label = "ALL", containerColor = MaterialTheme.colorScheme.secondary, onClick = { @@ -237,7 +237,7 @@ fun FloatingFABInterface( ) MenuFABItem( - icon = Icons.Default.BugReport, + icon = Icons.Default.Build, label = "DEBUG", containerColor = MaterialTheme.colorScheme.outline, onClick = { @@ -308,9 +308,9 @@ fun MainFloatingActionButton( ) { Icon( imageVector = when { - isProcessing -> Icons.Default.Sync + isProcessing -> Icons.Default.Refresh isMenuExpanded -> Icons.Default.Close - else -> Icons.Default.CameraAlt + else -> Icons.Default.PhotoCamera }, contentDescription = when { isProcessing -> "Processing..."