From e8aab5e7307b4e4bbc6a3df85be93e87569e85e3 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 16 Dec 2023 16:40:25 +0900 Subject: [PATCH] =?UTF-8?q?Impl=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/utils/impl/DeviceInfoUtilsImpl.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/utils/src/main/java/one/nem/lacerta/utils/impl/DeviceInfoUtilsImpl.java b/utils/src/main/java/one/nem/lacerta/utils/impl/DeviceInfoUtilsImpl.java index 703bc959..1cb5c759 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/impl/DeviceInfoUtilsImpl.java +++ b/utils/src/main/java/one/nem/lacerta/utils/impl/DeviceInfoUtilsImpl.java @@ -24,12 +24,22 @@ public class DeviceInfoUtilsImpl implements DeviceInfoUtils { return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath(); } + @Override + public String getExternalStorageDirectoryString() { + return getExternalStorageDirectory().toString(); + } + @Override public Path getExternalStorageDirectory(String type) { // TODO-rca: 結果がnullだった場合の処理を追加する? return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath(); } + @Override + public String getExternalStorageDirectoryString(String type) { + return getExternalStorageDirectory(type).toString(); + } + @Override public boolean hasPermission(String permission) { return false;