Skip to content

Commit

Permalink
Fix toast message when copying track info (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
werman authored Mar 2, 2020
1 parent 20648f5 commit dbd5e64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
ClipData clip = ClipData.newPlainText("Track info", String.format("%s %s", historyEntry.artist, historyEntry.track));
clipboard.setPrimaryClip(clip);

CharSequence toastText = getContext().getResources().getText(R.string.notify_stream_url_copied);
CharSequence toastText = getContext().getResources().getText(R.string.notify_track_info_copied);
Toast.makeText(getContext().getApplicationContext(), toastText, Toast.LENGTH_SHORT).show();
} else {
//Log.e(TAG, "Clipboard is NULL!");
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@
</string-array>

<string name="notify_stream_url_copied">Stream URL successfully copied</string>
<string name="notify_track_info_copied">Track info successfully copied</string>

<string-array name="actions_station_link">
<item>Visit Website</item>
Expand Down

0 comments on commit dbd5e64

Please sign in to comment.