Skip to content

Commit

Permalink
Merge pull request #4540 from juliajulie95/CATROID-1399
Browse files Browse the repository at this point in the history
CATROID-1399 Bluetooth export (.catrobat, .dst)
  • Loading branch information
wslany authored May 19, 2022
2 parents ab40bd1 + 039a670 commit 5426805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void testShareSimpleFile() {
Intent actualShareIntent = actualChooserIntent.getParcelableExtra(Intent.EXTRA_INTENT);

Intent expectedShareIntent = new Intent(Intent.ACTION_SEND, uriForFile);
expectedShareIntent.setType("application/octet-stream");
expectedShareIntent.setType("text/*");
expectedShareIntent.putExtra(Intent.EXTRA_STREAM, uriForFile);
expectedShareIntent.putExtra(Intent.EXTRA_SUBJECT, dstFile.getName());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ExportEmbroideryFileLauncher(
override fun startActivity() {
val fileUri = FileProvider.getUriForFile(activity, activity.packageName + ".fileProvider", file)
val shareIntent = Intent(Intent.ACTION_SEND)
shareIntent.type = "application/octet-stream"
shareIntent.type = "text/*"
shareIntent.putExtra(Intent.EXTRA_STREAM, fileUri)
shareIntent.putExtra(Intent.EXTRA_SUBJECT, file.name)

Expand Down

0 comments on commit 5426805

Please sign in to comment.