1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-23 00:33:09 +02:00

Don't limit mime type to text/* when importing

When exporting a file to a directory that already has a file with the
same name, android adds " (1)" to the filename. If limiting type to
text/* when picking file to import, then it's not possible to select
that file.
This commit is contained in:
Erik Johansson
2018-02-27 22:25:47 +01:00
parent 6af6f6b9f3
commit fbc7f8e6b6

View File

@@ -553,7 +553,7 @@ public class MainActivity extends AppCompatActivity
else {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("text/*");
intent.setType("*/*");
startActivityForResult(
Intent.createChooser(intent, getResources().getString(R.string.label_import)),