pull/178/head
FongMi 2 years ago
parent bd1ff02fbe
commit 0ada98fbc1
  1. 2
      app/build.gradle
  2. 2
      app/src/main/java/com/fongmi/android/tv/utils/FileChooser.java

@ -11,7 +11,7 @@ android {
minSdk 21 minSdk 21
targetSdk 28 targetSdk 28
versionCode 210 versionCode 210
versionName "20231210#2" versionName "20231210#3"
javaCompileOptions { javaCompileOptions {
annotationProcessorOptions { annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()] arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]

@ -47,7 +47,7 @@ public class FileChooser {
} }
public void show(String mimeType, String[] mimeTypes, int code) { public void show(String mimeType, String[] mimeTypes, int code) {
Intent intent = new Intent(Util.isTvBox() ? Intent.ACTION_OPEN_DOCUMENT : Intent.ACTION_GET_CONTENT); Intent intent = new Intent(Util.isTvBox() ? Intent.ACTION_GET_CONTENT : Intent.ACTION_OPEN_DOCUMENT);
intent.setType(mimeType); intent.setType(mimeType);
intent.addCategory(Intent.CATEGORY_OPENABLE); intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes); intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);

Loading…
Cancel
Save