czlucius / code-scanner

An Android app to scan and generate codes(barcodes/QR codes)
GNU Affero General Public License v3.0
39 stars 24 forks source link

Write shared QR images into cache instead of storage #19

Closed czlucius closed 2 years ago

czlucius commented 2 years ago

QR photos are persisted to user storage when sharing. This uses storage, and is not ideal on devices with low storage. Screenshot_20211205-165227_Files.jpg

Fix: write to cache dir instead of files directory, this will use user storage. (.ui.CreateFragment)

Currently, the images are stored in (Internal Storage)/Android/data/com.czlucius.scan/Pictures. You may clear this directory if you wish. (On Android 11+, only the native Storage Access Framework can access it)