show a different placeholder message depending on the system version

This commit is contained in:
tibbi 2020-04-02 19:01:38 +02:00
parent 3c52f4d8c8
commit a97731ee86
3 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,8 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
recordings_placeholder.beVisibleIf(recordings.isEmpty())
if (recordings.isEmpty()) {
val stringId = if (isQPlus()) R.string.no_recordings_found else R.string.no_recordings_in_folder_found
recordings_placeholder.text = context.getString(stringId)
resetProgress(null)
player?.stop()
}

View File

@ -4,6 +4,7 @@
<string name="recording_saved_successfully">Nahrávka bola uložená ako \n\"%s\"</string>
<string name="recording">Nahráva sa</string>
<string name="no_recordings_found">Nenašli sa žiadne nahrávky\nvytvorené touto aplikáciou</string>
<string name="no_recordings_in_folder_found">V zvolenom priečinku sa nenašli\nžiadne nahrávky</string>
<!-- Confirmation dialog -->
<string name="delete_recordings_confirmation">Ste si istý, že chcete odstrániť %s?</string> <!-- Are you sure you want to delete 5 recordings? -->

View File

@ -4,6 +4,7 @@
<string name="recording_saved_successfully">Recording saved successfully as\n\"%s\"</string>
<string name="recording">Recording</string>
<string name="no_recordings_found">No recordings created by this app\nhave been found</string>
<string name="no_recordings_in_folder_found">No recordings have been found\nin the selected folder</string>
<!-- Confirmation dialog -->
<string name="delete_recordings_confirmation">Are you sure you want to delete %s?</string> <!-- Are you sure you want to delete 5 recordings? -->