Skip to content

Commit 9c31c20

Browse files
authored
Merge pull request #134 from brarcher/file-picker
Remove file:// Uri from backup file picker
2 parents d547779 + d7564ba commit 9c31c20

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

app/src/main/java/protect/budgetwatch/ImportExportActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ public void onClick(View v)
113113

114114
// Check that there is an activity that can bring up a file chooser
115115
final Intent intentPickAction = new Intent(Intent.ACTION_PICK);
116-
intentPickAction.setData(Uri.parse("file://"));
117116

118117
Button importFilesystem = (Button) findViewById(R.id.importOptionFilesystemButton);
119118
importFilesystem.setOnClickListener(new View.OnClickListener()

app/src/test/java/protect/budgetwatch/ImportExportActivityTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ private void registerIntentHandler(String handler)
7373
info.activityInfo.exported = true;
7474

7575
Intent intent = new Intent(handler);
76-
if(handler.equals(Intent.ACTION_PICK))
77-
{
78-
intent.setData(Uri.parse("file://"));
79-
}
8076

8177
if(handler.equals(Intent.ACTION_GET_CONTENT))
8278
{

gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18-
# org.gradle.parallel=true
19-
#android.enableAapt2=false
18+
# org.gradle.parallel=true

0 commit comments

Comments
 (0)