mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-01-22 13:58:07 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user