TrixiEther / DashchanFork

Imageboards client for Android
GNU General Public License v3.0
40 stars 2 forks source link

Use CacheManager to obtain cache directory for post attachments #147

Open N3-M3-S1S opened 6 months ago

N3-M3-S1S commented 6 months ago

Some devices have an issue where users cannot attach media files to their posts because the "getExternalCacheDir" function returns null and DraftsStorage requires this directory to store post attachments. However, commit 2f3fdccead9c688e1c71a8ff72cc86063bc93e8d has an option that allows the use of internal storage for cache. By enabling this option and implementing the changes as per this commit, users can now attach media files to posts even if the external cache directory cannot be used.