update the notification in case the recording is paused
This commit is contained in:
parent
a69be0c11c
commit
2ace3ffdea
11 changed files with 70 additions and 56 deletions
|
@ -158,6 +158,7 @@ class RecorderService : Service() {
|
|||
status = RECORDING_RUNNING
|
||||
}
|
||||
broadcastStatus()
|
||||
startForeground(RECORDER_RUNNING_NOTIF_ID, showNotification())
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
}
|
||||
|
@ -237,8 +238,11 @@ class RecorderService : Service() {
|
|||
var priority = Notification.PRIORITY_DEFAULT
|
||||
var icon = R.drawable.ic_microphone_vector
|
||||
var title = label
|
||||
var text = getString(R.string.recording)
|
||||
var visibility = NotificationCompat.VISIBILITY_PUBLIC
|
||||
var text = getString(R.string.recording)
|
||||
if (status == RECORDING_PAUSED) {
|
||||
text += " (${getString(R.string.paused)})"
|
||||
}
|
||||
|
||||
if (hideNotification) {
|
||||
priority = Notification.PRIORITY_MIN
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<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>
|
||||
<string name="paused">Paused</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? -->
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<string name="recording">Εγγραφή</string>
|
||||
<string name="no_recordings_found">Δεν βρέθηκαν εγγραφές που δημιουργήθηκαν\n από αυτήν την εφαρμογή</string>
|
||||
<string name="no_recordings_in_folder_found">Δεν βρέθηκαν εγγραφές\nστον επιλεγμένο φάκελο</string>
|
||||
<string name="paused">Paused</string>
|
||||
|
||||
<!-- Confirmation dialog -->
|
||||
<string name="delete_recordings_confirmation">Είστε βέβαιοι ότι θέλετε να διαγράψετε τις %s;</string> <!-- Are you sure you want to delete 5 recordings? -->
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<string name="recording">Grabando</string>
|
||||
<string name="no_recordings_found">No se han encontrado grabaciones\ncreadas por esta app</string>
|
||||
<string name="no_recordings_in_folder_found">No se han encontrado grabaciones\nen la carpeta seleccionada</string>
|
||||
<string name="paused">Paused</string>
|
||||
|
||||
<!-- Confirmation dialog -->
|
||||
<string name="delete_recordings_confirmation">¿Estás seguro que quieres eliminar %s?</string> <!-- Are you sure you want to delete 5 recordings? -->
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<string name="recording">Įrašoma</string>
|
||||
<string name="no_recordings_found">Nerasta įrašų įrašytų su šia programėle\nbuvo rasta</string>
|
||||
<string name="no_recordings_in_folder_found">Nerasta įrašų\pasirinktame aplanke</string>
|
||||
<string name="paused">Paused</string>
|
||||
|
||||
<!-- Confirmation dialog -->
|
||||
<string name="delete_recordings_confirmation">Ar tikrai norite ištrinti %s?</string> <!-- Are you sure you want to delete 5 recordings? -->
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<string name="recording">Opnemen</string>
|
||||
<string name="no_recordings_found">Geen opnames door deze app gevonden</string>
|
||||
<string name="no_recordings_in_folder_found">Geen opnames gevonden in de gekozen map</string>
|
||||
<string name="paused">Paused</string>
|
||||
|
||||
<!-- Confirmation dialog -->
|
||||
<string name="delete_recordings_confirmation">De volgende opname verwijderen? %s</string> <!-- Are you sure you want to delete 5 recordings? -->
|
||||
|
@ -20,7 +21,7 @@
|
|||
<!-- FAQ -->
|
||||
<string name="faq_1_title">Kan ik de notificatie tijdens het opnemen verbergen?</string>
|
||||
<string name="faq_1_text">Dat ligt eraan. Tijdens het gebruik is het niet langer mogelijk in Android om notificaties van dit soort apps volledig te verbergen.
|
||||
De app bevat wel een instelling waarmee er toch zal worden geprobeerd om dit te bewerkstelligen. In de schermvergrendeling kan de notificatie wél worden verborgen door het tonen van gevoelige notificaties in de apparaatinstellingen uit te schakelen.</string>
|
||||
De app bevat wel een instelling waarmee er toch zal worden geprobeerd om dit te bewerkstelligen. In de schermvergrendeling kan de notificatie w<EFBFBD>l worden verborgen door het tonen van gevoelige notificaties in de apparaatinstellingen uit te schakelen.</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- App title has to have less than 50 characters. If you cannot squeeze it, just remove a part of it -->
|
||||
|
@ -30,7 +31,7 @@
|
|||
<string name="app_long_description">
|
||||
Ooit gedacht "had ik dat gesprek maar opgenomen"? Welke briljante opmerking iemand maakte? Welke taken in een vergadering werden uitgedeeld? Met deze simpele voicerecorder zijn heel gemakkelijk opnames te maken.
|
||||
|
||||
De app is komt direct ter zake en bevat geen onnodige franjes. Het toont Het toont het huidige geluidsvolume in een mooie visualisatie, biedt een intuïtieve en cleane interface, zodat er niets mis kan gaan.
|
||||
De app is komt direct ter zake en bevat geen onnodige franjes. Het toont Het toont het huidige geluidsvolume in een mooie visualisatie, biedt een intu<EFBFBD>tieve en cleane interface, zodat er niets mis kan gaan.
|
||||
|
||||
Het biedt ook een handige speler, zodat de opnames snel kunnen worden beluisterd, hernoemd of verwijderd.
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<string name="recording">Nagrywanie</string>
|
||||
<string name="no_recordings_found">Nie znaleziono nagrań zapisanych\nprzez tę aplikację</string>
|
||||
<string name="no_recordings_in_folder_found">Nie znaleziono nagrań\nw wybranym folderze</string>
|
||||
<string name="paused">Paused</string>
|
||||
|
||||
<!-- Confirmation dialog -->
|
||||
<string name="delete_recordings_confirmation">Czy jesteś pewien, że chcesz usunąć %s?</string> <!-- Are you sure you want to delete 5 recordings? -->
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<string name="recording">Gravação</string>
|
||||
<string name="no_recordings_found">Não foram encontradas gravações\ncriadas por esta aplicação</string>
|
||||
<string name="no_recordings_in_folder_found">Não foram encontradas gravações\nna pasta selecionada</string>
|
||||
<string name="paused">Paused</string>
|
||||
|
||||
<!-- Confirmation dialog -->
|
||||
<string name="delete_recordings_confirmation">Tem a certeza de que deseja apagar %s?</string> <!-- Are you sure you want to delete 5 recordings? -->
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<string name="recording">Запись</string>
|
||||
<string name="no_recordings_found">Записи, созданные этим приложением,\nне найдены</string>
|
||||
<string name="no_recordings_in_folder_found">В выбранной папке не найдено\nни одной записи</string>
|
||||
<string name="paused">Paused</string>
|
||||
|
||||
<!-- Confirmation dialog -->
|
||||
<string name="delete_recordings_confirmation">Вы уверены, что хотите удалить %s?</string> <!-- Are you sure you want to delete 5 recordings? -->
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<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">Vo zvolenom priečinku sa nenašli\nžiadne nahrávky</string>
|
||||
<string name="paused">Pauznuté</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? -->
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<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>
|
||||
<string name="paused">Paused</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? -->
|
||||
|
|
Loading…
Reference in a new issue