feat: pinning file shortcuts to home screen#1889
Merged
RohitKushvaha01 merged 6 commits intoAcode-Foundation:mainfrom Feb 21, 2026
Merged
feat: pinning file shortcuts to home screen#1889RohitKushvaha01 merged 6 commits intoAcode-Foundation:mainfrom
RohitKushvaha01 merged 6 commits intoAcode-Foundation:mainfrom
Conversation
Contributor
Greptile SummaryAdds ability to pin file shortcuts to Android home screen, allowing users to quickly open files from their launcher. The feature includes automatic icon generation with file extension colors and labels. Key Changes:
Critical Issues Already Flagged:
Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant FileMenu as File Menu UI
participant Commands as commands.js
participant Plugin as plugin.js (Cordova)
participant Java as System.java
participant Android as Android Launcher
User->>FileMenu: Click "Add to home screen"
FileMenu->>Commands: pin-file-shortcut command
Commands->>Commands: Validate file URI exists
Commands->>Commands: Generate shortcut ID from URI
Commands->>Plugin: pinFileShortcut(shortcut)
Plugin->>Java: cordova.exec('pin-file-shortcut')
Java->>Java: Validate shortcut data
Java->>Java: Check launcher support
Java->>Java: Create Intent with file URI
Java->>Java: Generate icon (bitmap or from URI)
Java->>Java: Build ShortcutInfoCompat
Java->>Android: ShortcutManagerCompat.requestPinShortcut()
Android-->>User: Show "Add to home screen" dialog
User->>Android: Confirm
Android-->>Java: Success
Java-->>Plugin: callback.success()
Plugin-->>Commands: resolve()
Commands-->>User: Toast: "Shortcut request opened"
Last reviewed commit: f991ae3 |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original PR #1658
Closes #1452