1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-06 03:50:22 +02:00

move string to donottranslate.xml and fix nits

This commit is contained in:
pratyaksh1610 2023-01-03 14:07:28 +05:30
parent 50269d0f5e
commit 3e15c77a05
3 changed files with 4 additions and 4 deletions

View file

@ -566,8 +566,6 @@ public class DownloadDialog extends DialogFragment
}
private void onItemSelectedSetFileName() {
final String setSubtitleLanguageCode = subtitleStreamsAdapter.getItem(selectedSubtitleIndex)
.getLanguageTag();
final String fileName = FilenameUtils.createFilename(getContext(),
currentInfo.getName());
switch (dialogBinding.videoAudioGroup.getCheckedRadioButtonId()) {
@ -576,7 +574,9 @@ public class DownloadDialog extends DialogFragment
dialogBinding.fileName.setText(fileName);
break;
case R.id.subtitle_button:
dialogBinding.fileName.setText(fileName + getString(
final String setSubtitleLanguageCode = subtitleStreamsAdapter
.getItem(selectedSubtitleIndex).getLanguageTag();
dialogBinding.fileName.setText(getString(
R.string.caption_file_name, fileName, setSubtitleLanguageCode));
break;
}