mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
Xmlを保存できるようにした
This commit is contained in:
3 files changed
+34
-2
No files matched your search
@@ -20,7 +20,9 @@ public class DeviceInfoUtilsImpl implements DeviceInfoUtils {
|
||||
|
||||
@Override
|
||||
public Path getExternalStorageDirectory() {
|
||||
// TODO-rca: 結果がnullだった場合の処理を追加する?
|
||||
if (applicationContext.getExternalFilesDir(null) == null) {
|
||||
throw new RuntimeException("applicationContext.getExternalFilesDir(null) is null");
|
||||
}
|
||||
return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath();
|
||||
}
|
||||
|
||||
@@ -31,7 +33,9 @@ public class DeviceInfoUtilsImpl implements DeviceInfoUtils {
|
||||
|
||||
@Override
|
||||
public Path getExternalStorageDirectory(String type) {
|
||||
// TODO-rca: 結果がnullだった場合の処理を追加する?
|
||||
if(applicationContext.getExternalFilesDir(type) == null) {
|
||||
throw new RuntimeException("applicationContext.getExternalFilesDir(" + type + ") is null");
|
||||
}
|
||||
return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user