|
|
|
@ -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); |
|
|
|
|