properly format song share string

This commit is contained in:
dkanada 2020-10-23 06:21:55 +09:00
commit 308ef3c88e
3 changed files with 7 additions and 11 deletions

View file

@ -36,15 +36,11 @@ public class SongShareDialog extends DialogFragment {
startActivity(Intent.createChooser(MusicUtil.createShareSongFileIntent(song, getContext()), null));
break;
case 1:
startActivity(
Intent.createChooser(
new Intent()
.setAction(Intent.ACTION_SEND)
.putExtra(Intent.EXTRA_TEXT, currentlyListening)
.setType("text/plain"),
null
)
);
Intent intent = new Intent()
.setAction(Intent.ACTION_SEND)
.putExtra(Intent.EXTRA_TEXT, currentlyListening)
.setType("text/plain");
startActivity(Intent.createChooser(intent, null));
break;
}
})