summaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-03-08 21:38:56 +0100
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:38 +0200
commitb5819594ba7d5f0328a1227f486e324eea057703 (patch)
tree8a7cc5b5f793c41f8a9ae7ec6c5c33e00a3e790a /src/android
parentandroid: Convert GameProvider to Kotlin (diff)
downloadyuzu-b5819594ba7d5f0328a1227f486e324eea057703.tar
yuzu-b5819594ba7d5f0328a1227f486e324eea057703.tar.gz
yuzu-b5819594ba7d5f0328a1227f486e324eea057703.tar.bz2
yuzu-b5819594ba7d5f0328a1227f486e324eea057703.tar.lz
yuzu-b5819594ba7d5f0328a1227f486e324eea057703.tar.xz
yuzu-b5819594ba7d5f0328a1227f486e324eea057703.tar.zst
yuzu-b5819594ba7d5f0328a1227f486e324eea057703.zip
Diffstat (limited to 'src/android')
-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
+}