Skip to content

Fix Compose pointer-input compile break by removing obsolete consume import#11

Draft
Copilot wants to merge 4 commits into
masterfrom
copilot/update-interface-and-logic
Draft

Fix Compose pointer-input compile break by removing obsolete consume import#11
Copilot wants to merge 4 commits into
masterfrom
copilot/update-interface-and-logic

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 6, 2026

The build fails in DashboardScreen.kt due to Unresolved reference 'consume' from an outdated pointer-input import. Compose UI 1.5+ exposes consume() as a PointerInputChange member, so the extension import is no longer valid.

  • Root-cause alignment

    • Removed the stale import causing symbol resolution failure:
      • androidx.compose.ui.input.pointer.consume
  • Pointer-input callsite behavior

    • Kept the existing drag handler call unchanged:
      • change.consume()
    • This continues to use the current member API in modern Compose versions.
  • Scope

    • Single-file, surgical change in:
      • app/src/main/java/com/aqsama/neomarkor/ui/screen/DashboardScreen.kt
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.input.pointer.pointerInput
// removed: import androidx.compose.ui.input.pointer.consume

...

onDrag = { change, amount ->
    change.consume()
    // ...
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 6, 2026 08:56
Co-authored-by: AQSAMA <90539519+AQSAMA@users.noreply.github.com>
Co-authored-by: AQSAMA <90539519+AQSAMA@users.noreply.github.com>
Copilot AI changed the title [WIP] Update interface and logic for new features and design Redesign notes/folder UX with hierarchical folder management, edit-mode actions, and folder metadata wiring Mar 6, 2026
Co-authored-by: AQSAMA <90539519+AQSAMA@users.noreply.github.com>
Copilot AI changed the title Redesign notes/folder UX with hierarchical folder management, edit-mode actions, and folder metadata wiring Fix Compose pointer-input compile break by removing obsolete consume import Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants