Skip to content

V1.4.2 Download Fixes & Open in New Tab

Choose a tag to compare

@PDFMerger2025 PDFMerger2025 released this 15 Jul 03:01
· 5 commits to main since this release
ea9e6a5

🌍 PanGalactic Monkey 1.4.2 — Slim & Chunky Update

Summary of Improvements

  • Direct file downloads - Downloads APK/PDF/ZIP/images/videos instantly
  • Long‑press link popup - Open in new tab, copy link, close
  • Storage permission cleanup - No misleading warnings
  • Robust download manager - Fallback folder, unique filenames, better errors
  • Scrolling improvements - Smoother, slower, more controllable
  • Accurate long‑press detection - JS‑first detection avoids false download prompts
  • Download completion dialog - Open/Install/Delete options

🗂️ Direct File Download Handling
File links (APK, PDF, ZIP, TXT, images, videos) now open a download prompt instead of a blank page.

Technical Details * Intercepts URLs with file extensions * Calls promptDownloadConfirmation() * Prevents WebView/GeckoView from trying to load file URLs *

🔗 Long‑Press Link Popup
Long‑pressing any link now shows:

  • Open in New Tab
  • Copy Link
  • Close
Technical Details * Updated showLinkPopup() * Added addNewTab(url) * Clipboard support *

🔐 Smarter Storage Permission Handling
No more misleading “permission denied” warnings.
Only shows when permission is truly missing (and only on older Android versions).

Technical Details * Removed toast from onRequestPermissionsResult() * Android 13+ ignores storage permission entirely *

📥 Robust Download Manager
Downloads now work more reliably across all devices.
Includes:

  • Fallback folder
  • Unique filenames
  • Clearer error messages
  • Better handling of restricted storage
Technical Details * Creates PanGalacticMonkey folder; falls back to internal storage * Adds (1), (2) etc. to duplicate filenames * Improved failure handling in startFileDownload() *

🖱️ Smoother, Adjustable Scrolling
Scrolling is now smoother and easier to control.

  • Lower default speed
  • Smaller range
  • More precise adjustments
Technical Details * Default speed: 40f (was 80f) * Seekbar range: 5–200 * Step size: 5 *

🎯 Accurate Long‑Press Detection
Long‑pressing tricky links (like GitHub .bin files) now behaves correctly:

  • Links → popup
  • Images/media → save
  • No accidental download prompts
Technical Details * JS resolver (__tvResolveElement) runs first * HitTestResult only used as fallback *

📦 Download Completion Dialog
After any download finishes, you now see:

  • Open / Install
  • Delete
  • Done
Technical Details * Added showDownloadCompleteDialog() * Integrates with openDownloadedFile() and deleteDownloadedFile() * Uses findDownloadIndexByPath() * Added onPageStarted() override inside Slim’s WebViewClient * Added isFileUrl() helper * Added explicit .apk detection inside loadFromUrlBar() *

Also fixed memory leaks found in Chunky.