From d5f7301bb9cdcb95422e57c11d357c8aafb0abb8 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Thu, 10 Jun 2021 10:09:09 +0300 Subject: [PATCH] [android] Remove rudimental cache dir from /sdcard Use internal storage for tempDir. Currently tempDir contains only one file - vulkan_dump.bin. There is no need to create misleading external /sdcard/Android/data/app.organicmaps directory just for one file. Fixes #534 Signed-off-by: Roman Tsisyk --- android/src/com/mapswithme/util/StorageUtils.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/android/src/com/mapswithme/util/StorageUtils.java b/android/src/com/mapswithme/util/StorageUtils.java index 4927a70641..888c3e75b0 100644 --- a/android/src/com/mapswithme/util/StorageUtils.java +++ b/android/src/com/mapswithme/util/StorageUtils.java @@ -145,10 +145,6 @@ public class StorageUtils @NonNull public static String getTempPath(@NonNull Application application) { - final File cacheDir = application.getExternalCacheDir(); - if (cacheDir != null) - return addTrailingSeparator(cacheDir.getAbsolutePath()); - return addTrailingSeparator(application.getCacheDir().getAbsolutePath()); }