mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-23 16:53:04 +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:
@@ -553,7 +553,7 @@ public class MainActivity extends AppCompatActivity
|
|||||||
else {
|
else {
|
||||||
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
||||||
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||||
intent.setType("text/*");
|
intent.setType("*/*");
|
||||||
|
|
||||||
startActivityForResult(
|
startActivityForResult(
|
||||||
Intent.createChooser(intent, getResources().getString(R.string.label_import)),
|
Intent.createChooser(intent, getResources().getString(R.string.label_import)),
|
||||||
|
Reference in New Issue
Block a user