summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.java28
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.kt8
2 files changed, 8 insertions, 28 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.java
deleted file mode 100644
index 4ec001a7f..000000000
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.yuzu.yuzu_emu.model;
-
-import android.net.Uri;
-import android.provider.DocumentsContract;
-
-public class MinimalDocumentFile {
- private final String filename;
- private final Uri uri;
- private final String mimeType;
-
- public MinimalDocumentFile(String filename, String mimeType, Uri uri) {
- this.filename = filename;
- this.mimeType = mimeType;
- this.uri = uri;
- }
-
- public String getFilename() {
- return filename;
- }
-
- public Uri getUri() {
- return uri;
- }
-
- public boolean isDirectory() {
- return mimeType.equals(DocumentsContract.Document.MIME_TYPE_DIR);
- }
-}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.kt
new file mode 100644
index 000000000..2e4acb2be
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MinimalDocumentFile.kt
@@ -0,0 +1,8 @@
+package org.yuzu.yuzu_emu.model
+
+import android.net.Uri
+import android.provider.DocumentsContract
+
+class MinimalDocumentFile(val filename: String, mimeType: String, val uri: Uri) {
+ val isDirectory: Boolean = mimeType == DocumentsContract.Document.MIME_TYPE_DIR
+}