Remove file:// Uri from backup file picker

On Android SDK 24+ exposing a file Uri causes a failure.
Picking a file from a file chooser using data of a file://
Uri also hits this. As this is not necessary, removing the
Uri.
This commit is contained in:
Branden Archer
2017-12-31 15:53:57 -05:00
parent 858e317d8f
commit 52c41f4c49
2 changed files with 0 additions and 5 deletions

View File

@@ -85,7 +85,6 @@ public class ImportExportActivity extends AppCompatActivity
// Check that there is an activity that can bring up a file chooser
final Intent intentPickAction = new Intent(Intent.ACTION_PICK);
intentPickAction.setData(Uri.parse("file://"));
Button importFilesystem = (Button) findViewById(R.id.importOptionFilesystemButton);
importFilesystem.setOnClickListener(new View.OnClickListener()