Tom Levy 19f0a2ad35 fix: resolve proper filename when saving a shared file (#86)
* Fix filename when saving a shared file

Previously, the code used the last path component of the content URI,
but that isn't necessarily the filename -- it can be a numeric ID.

Switch to the helper function getFilenameFromContentUri(), which uses
ContentResolver to read the DISPLAY_NAME column. (If that fails, we
fall back to the last component of the content URI as before, because
we don't have anything better to use.)

Also improve the way the MIME type is determined. Previously it was
just based on the file extension. Switch to first query the
ContentResolver, then try the type of the Intent (which is supposed to
be set to the MIME type of the data for ACTION_SEND, but may be set to
"*/*" if the type is unknown), and only then fall back to using the
file extension.

Fixes #37.

* style: shorten lines

---------

Co-authored-by: Naveen Singh <36371707+naveensingh@users.noreply.github.com>
Co-authored-by: Naveen Singh <snaveen935@gmail.com>
2025-05-21 12:03:10 +05:30
2024-01-07 00:36:54 +05:30
2021-08-17 09:38:47 +02:00
2025-05-05 19:45:16 +05:30
2025-01-21 14:00:23 +05:30
2025-05-05 19:45:16 +05:30
2023-08-15 01:29:22 +03:00
2025-03-12 16:13:59 +05:30
2025-03-12 16:13:59 +05:30
2019-10-13 15:31:15 +02:00
2024-01-26 23:31:09 +01:00
2023-09-06 13:23:36 +02:00

Fossify File Manager

Logo

Get it on Google Play Get it on F-Droid Get it on IzzyOnDroid

Tired of file managers that slow you down and invade your privacy? Unlock a lightning-fast, secure, and completely customizable experience with Fossify File Manager.

🚀 DOMINATE YOUR DIGITAL WORLD WITH BLAZING-FAST NAVIGATION:

  • Swiftly manage your files with easy compression and transfer capabilities, keeping your digital life organized.
  • Quickly access your most-used folders with customizable home folder and favorite shortcuts.
  • Find what you need in seconds with intuitive navigation, search, and sorting options.

🔐 FORTIFY YOUR DATA WITH UNPARALLELED PRIVACY AND SECURITY:

  • Secure sensitive files with password, pattern, or fingerprint locks for hidden items or the entire app.
  • No internet access required your files stay private and secure on your device.

💾 MASTER YOUR STORAGE LIKE A PRO:

  • Clear space with easy file and folder compression to maximize your device's potential.
  • Identify and clean up space-hogging files with the built-in storage analysis tool.
  • Seamlessly navigate root files, SD cards, and USB devices for total organization.

📁 OPTIMIZE YOUR WORKFLOW WITH HANDY TOOLS:

  • Create desktop shortcuts for instant access to your most-used files and folders.
  • Edit, print, or read documents easily with the light file editor, enhanced by zoom gestures.

🌈 MAKE IT YOUR OWN WITH ENDLESS CUSTOMIZATION:

  • Enjoy an ad-free, open-source experience that puts you in control, not corporate giants.
  • Personalize colors, themes, and icons to reflect your unique style and preferences.

Ditch the bloated, privacy-invading file managers and experience true freedom with Fossify File Manager. Download now and take back control of your digital life!

➡️ Explore more Fossify apps: https://www.fossify.org
➡️ Open-Source Code: https://www.github.com/FossifyOrg
➡️ Join the community on Reddit: https://www.reddit.com/r/Fossify
➡️ Connect on Telegram: https://t.me/Fossify

App image App image App image
Description
No description provided
Readme GPL-3.0 94 MiB
Languages
Kotlin 99.9%
Ruby 0.1%