Updated strings to better match the material design "writing" guidelines

This commit is contained in:
Karim Abou Zeid 2015-08-19 02:17:46 +02:00
commit 48337bb7da
28 changed files with 232 additions and 408 deletions

View file

@ -23,8 +23,6 @@ public class PlayingQueueDialog extends LeakDetectDialogFragment {
public static PlayingQueueDialog create() {
final ArrayList<Song> playingQueue = MusicPlayerRemote.getPlayingQueue();
if (playingQueue.isEmpty())
return null;
PlayingQueueDialog dialog = new PlayingQueueDialog();
Bundle args = new Bundle();
args.putSerializable("queue", playingQueue);

View file

@ -31,7 +31,7 @@ public class SongShareDialog extends LeakDetectDialogFragment {
final String currentlyListening = getString(R.string.currently_listening_to_x_by_x, song.title, song.artistName);
return new MaterialDialog.Builder(getActivity())
.title(R.string.what_do_you_want_to_share)
.items(new CharSequence[]{getString(R.string.the_audio_file), currentlyListening})
.items(new CharSequence[]{getString(R.string.the_audio_file), "\u201C" + currentlyListening + "\u201D"})
.itemsCallback(new MaterialDialog.ListCallback() {
@Override
public void onSelection(MaterialDialog materialDialog, View view, int i, CharSequence charSequence) {

View file

@ -85,12 +85,7 @@ public class NavigationUtil {
}
public static void openPlayingQueueDialog(@NonNull final AppCompatActivity activity) {
PlayingQueueDialog dialog = PlayingQueueDialog.create();
if (dialog != null) {
dialog.show(activity.getSupportFragmentManager(), "PLAY_QUEUE");
} else {
Toast.makeText(activity, activity.getResources().getString(R.string.playing_queue_empty), Toast.LENGTH_SHORT).show();
}
PlayingQueueDialog.create().show(activity.getSupportFragmentManager(), "PLAY_QUEUE");
}
public static void openEqualizer(@NonNull final Activity activity) {

View file

@ -112,7 +112,7 @@ public class PlaylistsUtil {
if (showToastOnFinish) {
Toast.makeText(context, context.getResources().getString(
R.string.inserted_x_songs_into_playlist, numInserted), Toast.LENGTH_SHORT).show();
R.string.inserted_x_songs_into_playlist_x, numInserted, getNameForPlaylist(context, playlistId)), Toast.LENGTH_SHORT).show();
}
} catch (SecurityException ignored) {
}