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
targetSdk 28
versionCode 210
versionName "20231210#2"
versionName "20231210#3"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]

@ -47,7 +47,7 @@ public class FileChooser {
}
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.addCategory(Intent.CATEGORY_OPENABLE);
intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);

Loading…
Cancel
Save