Browse Source

fix: resolve compilation errors in decoupled UI architecture

- 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 <noreply@anthropic.com>
feature/modern-capture-ui
Quildra 5 months ago
parent
commit
13713da169
  1. 2
      app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt
  2. 2
      app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingActionButtonUI.kt
  3. 12
      app/src/main/java/com/quillstudios/pokegoalshelper/ui/FloatingUIActivity.kt

2
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 ===

2
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<android.animation.Animator>)
animatorSet.duration = ANIMATION_DURATION_MEDIUM
animatorSet.interpolator = if (expand) OvershootInterpolator() else AccelerateDecelerateInterpolator()

12
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..."

Loading…
Cancel
Save