mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
Impl実装
This commit is contained in:
parent
0f8cf3dca0
commit
e8aab5e730
|
@ -24,12 +24,22 @@ public class DeviceInfoUtilsImpl implements DeviceInfoUtils {
|
||||||
return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath();
|
return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getExternalStorageDirectoryString() {
|
||||||
|
return getExternalStorageDirectory().toString();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Path getExternalStorageDirectory(String type) {
|
public Path getExternalStorageDirectory(String type) {
|
||||||
// TODO-rca: 結果がnullだった場合の処理を追加する?
|
// TODO-rca: 結果がnullだった場合の処理を追加する?
|
||||||
return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath();
|
return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getExternalStorageDirectoryString(String type) {
|
||||||
|
return getExternalStorageDirectory(type).toString();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasPermission(String permission) {
|
public boolean hasPermission(String permission) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user