properly format song share string
This commit is contained in:
parent
ccce5623b1
commit
308ef3c88e
3 changed files with 7 additions and 11 deletions
|
|
@ -36,15 +36,11 @@ public class SongShareDialog extends DialogFragment {
|
||||||
startActivity(Intent.createChooser(MusicUtil.createShareSongFileIntent(song, getContext()), null));
|
startActivity(Intent.createChooser(MusicUtil.createShareSongFileIntent(song, getContext()), null));
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
startActivity(
|
Intent intent = new Intent()
|
||||||
Intent.createChooser(
|
.setAction(Intent.ACTION_SEND)
|
||||||
new Intent()
|
.putExtra(Intent.EXTRA_TEXT, currentlyListening)
|
||||||
.setAction(Intent.ACTION_SEND)
|
.setType("text/plain");
|
||||||
.putExtra(Intent.EXTRA_TEXT, currentlyListening)
|
startActivity(Intent.createChooser(intent, null));
|
||||||
.setType("text/plain"),
|
|
||||||
null
|
|
||||||
)
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="what_do_you_want_to_share">What do you want to share?</string>
|
<string name="what_do_you_want_to_share">What do you want to share?</string>
|
||||||
<string name="currently_listening_to_x_by_x">Currently listening to {%1$s} by {%2$s}.</string>
|
<string name="currently_listening_to_x_by_x">Currently listening to %1$s by %2$s.</string>
|
||||||
<string name="the_audio_file">The audio file</string>
|
<string name="the_audio_file">The audio file</string>
|
||||||
<string name="action_share">Share</string>
|
<string name="action_share">Share</string>
|
||||||
<string name="action_settings">"Settings"</string>
|
<string name="action_settings">"Settings"</string>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="what_do_you_want_to_share">O que você quer compartilhar?</string>
|
<string name="what_do_you_want_to_share">O que você quer compartilhar?</string>
|
||||||
<string name="currently_listening_to_x_by_x">Atualmente ouvindo {% 1 $ s} em {% 2 $ s}.</string>
|
<string name="currently_listening_to_x_by_x">Atualmente ouvindo %1$s em %2$s.</string>
|
||||||
<string name="the_audio_file">O arquivo de áudio</string>
|
<string name="the_audio_file">O arquivo de áudio</string>
|
||||||
<string name="action_share">Compartilhar</string>
|
<string name="action_share">Compartilhar</string>
|
||||||
<string name="action_settings">"Configurações"</string>
|
<string name="action_settings">"Configurações"</string>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue