Skip to content

Add app info drop target for dash app icon drags#93

Open
RobinJ1995 wants to merge 1 commit into
masterfrom
claude/dash-icon-info-button-9leak5
Open

Add app info drop target for dash app icon drags#93
RobinJ1995 wants to merge 1 commit into
masterfrom
claude/dash-icon-info-button-9leak5

Conversation

@RobinJ1995

Copy link
Copy Markdown
Owner

Summary

Adds an "app info" drop target to the launcher bar that appears in place of the trash when dragging app icons from the dash. This allows users to quickly access the system's App Info screen for any installed app.

Key Changes

  • New AppInfoDragListener class: Implements drag-and-drop handling for the app info target, supporting both regular dash apps and pinned launcher bar apps
  • New openAppInfo() method in App class: Opens the system's App Info screen, with special handling for work profile apps using LauncherApps API
  • Launcher bar visibility toggling: Modified LauncherBarBinder to show/hide the app info target and trash based on drag source
    • Added dragShowsAppInfo flag to track when a dash app icon is being dragged
    • Added dragStartedFromDashApp() method to mark app icon drags
    • Updated startedDragging() and stoppedDragging() to manage visibility accordingly
  • Updated AppLauncherLongClickListener: Calls dragStartedFromDashApp() when initiating app icon drags from the dash
  • New UI elements:
    • Added launcher_appinfo.xml drawable (Material info_outline icon)
    • Added lalAppInfo AppLauncher view to activity layout
  • Comprehensive test coverage: Added AppInfoDragListenerTest with tests for highlight behavior, app info opening, and payload handling

Implementation Details

  • The app info target only appears for dash app icons (not folders or other draggable items)
  • Work profile apps use the LauncherApps API to open their app info screen, while personal profile apps use the standard Settings intent
  • The drag flag is sticky throughout the drag lifetime and automatically cleared when dragging stops
  • Proper error handling with user-facing toast messages if app info fails to open

https://claude.ai/code/session_01GP3qoGWaw2SXDWy4sQuy1m

Dragging an app icon from the dash to the trash did nothing (the dash
always shows every installed app, so there is nothing to delete) — it was
effectively a cancel. The launcher bar now shows an "app info" button in
the trash's place while an app icon (loose or launcher-pinned, including
dash search results) is dragged from the dash; dropping the icon on it
opens the system's App info screen for that app (via LauncherApps for
apps in another profile). Dash folders and folder members keep the trash,
where dropping still has a purpose (delete the folder / leave it).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GP3qoGWaw2SXDWy4sQuy1m
@RobinJ1995
RobinJ1995 force-pushed the claude/dash-icon-info-button-9leak5 branch from 19662d7 to 904806c Compare July 17, 2026 07:04
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