Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Commit

Permalink
changed backup sharing mime type to "*/*"
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Oct 13, 2016
1 parent 4743484 commit f6d2d05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Shared/src/main/res/values-de/strings_backup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
<string name="canceled">Abgebrochen</string>
<string name="done">Abgeschlossen</string>

<string name="powerswitch_backup_file">PowerSwitch Backup Datei</string>
<string name="powerswitch_backup_file">PowerSwitch Backup Datei: %1$s</string>

</resources>
2 changes: 1 addition & 1 deletion Shared/src/main/res/values/strings_backup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
<string name="canceled">Canceled</string>
<string name="done">Done</string>

<string name="powerswitch_backup_file">PowerSwitch Backup File</string>
<string name="powerswitch_backup_file">PowerSwitch Backup File: %1$s</string>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ public void shareBackup(@NonNull Context context, @NonNull Backup backup) {
try {
Intent intentShareFile = new Intent(Intent.ACTION_SEND);

intentShareFile.setType("application/pdf");
intentShareFile.setType("*/*");
intentShareFile.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + backup.getPath()));
intentShareFile.putExtra(Intent.EXTRA_SUBJECT, context.getString(R.string.powerswitch_backup_file));
intentShareFile.putExtra(Intent.EXTRA_TEXT, context.getString(R.string.powerswitch_backup_file));
intentShareFile.putExtra(Intent.EXTRA_SUBJECT, context.getString(R.string.powerswitch_backup_file, backup.getName()));
intentShareFile.putExtra(Intent.EXTRA_TEXT, context.getString(R.string.powerswitch_backup_file, backup.getName()));

context.startActivity(Intent.createChooser(intentShareFile, context.getString(R.string.send_to)));
} catch (Exception e) {
Expand Down

0 comments on commit f6d2d05

Please sign in to comment.