lets not show the filename at Save toast, it is too long
This commit is contained in:
parent
d0ded5ea44
commit
0df828bea8
|
@ -13,7 +13,6 @@ import android.os.Environment
|
|||
import android.os.IBinder
|
||||
import android.provider.MediaStore
|
||||
import android.provider.MediaStore.Audio.Media
|
||||
import android.widget.Toast
|
||||
import androidx.core.app.NotificationCompat
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||
|
@ -198,7 +197,7 @@ class RecorderService : Service() {
|
|||
val outputStream = contentResolver.openOutputStream(newUri)
|
||||
val inputStream = getFileInputStreamSync(currFilePath)
|
||||
inputStream!!.copyTo(outputStream!!, DEFAULT_BUFFER_SIZE)
|
||||
recordingSavedSuccessfully(true)
|
||||
recordingSavedSuccessfully()
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
}
|
||||
|
@ -209,13 +208,11 @@ class RecorderService : Service() {
|
|||
this,
|
||||
arrayOf(currFilePath),
|
||||
arrayOf(currFilePath.getMimeType())
|
||||
) { _, _ -> recordingSavedSuccessfully(false) }
|
||||
) { _, _ -> recordingSavedSuccessfully() }
|
||||
}
|
||||
|
||||
private fun recordingSavedSuccessfully(showFilenameOnly: Boolean) {
|
||||
val title = if (showFilenameOnly) currFilePath.getFilenameFromPath() else currFilePath
|
||||
val msg = String.format(getString(R.string.recording_saved_successfully), title)
|
||||
toast(msg, Toast.LENGTH_LONG)
|
||||
private fun recordingSavedSuccessfully() {
|
||||
toast(R.string.recording_saved_successfully)
|
||||
}
|
||||
|
||||
private fun getDurationUpdateTask() = object : TimerTask() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Simpel Lydoptager</string>
|
||||
<string name="app_launcher_name">Lydoptager</string>
|
||||
<string name="recording_saved_successfully">Optagelse gemt som\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Optagelse gemt som</string>
|
||||
<string name="recording">Optager</string>
|
||||
<string name="no_recordings_found">Ingen optagelser lavet af denne app\ner blevet fundet</string>
|
||||
<string name="no_recordings_in_folder_found">Ingen optagelser er fundet\ni den valgte mappe</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Schlichtes Diktiergerät</string>
|
||||
<string name="app_launcher_name">Diktiergerät</string>
|
||||
<string name="recording_saved_successfully">Aufnahme erfolgreich gespeichert als \n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Aufnahme erfolgreich gespeichert</string>
|
||||
<string name="recording">Aufnehmen</string>
|
||||
<string name="no_recordings_found">Es wurden keine von dieser App\nerstellten Aufnahmen gefunden</string>
|
||||
<string name="no_recordings_in_folder_found">Es wurden keine Aufnahmen\nim ausgewählten Ordner gefunden</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Απλή Εγγραφή Φωνής</string>
|
||||
<string name="app_launcher_name">Εγγραφή Φωνής</string>
|
||||
<string name="recording_saved_successfully">Η εγγραφή αποθηκεύτηκε με επιτυχία ως\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Η εγγραφή αποθηκεύτηκε με επιτυχία ως</string>
|
||||
<string name="recording">Εγγραφή</string>
|
||||
<string name="no_recordings_found">Δεν βρέθηκαν εγγραφές που δημιουργήθηκαν\n από αυτήν την εφαρμογή</string>
|
||||
<string name="no_recordings_in_folder_found">Δεν βρέθηκαν εγγραφές\nστον επιλεγμένο φάκελο</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Grabadora de voz Simple</string>
|
||||
<string name="app_launcher_name">Grabadora de voz</string>
|
||||
<string name="recording_saved_successfully">Grabación guardada exitosamente como\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Grabación guardada exitosamente</string>
|
||||
<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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">ضبط صوت ساده</string>
|
||||
<string name="app_launcher_name">ضبط صدا</string>
|
||||
<string name="recording_saved_successfully">ضبط با موفقیت به عنوان ذخیره شد\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">ضبط با موفقیت ذخیره شد</string>
|
||||
<string name="recording">در حال ضبط</string>
|
||||
<string name="no_recordings_found">هیچ ضبطی توسط این برنامه ایجاد نشده است\n پیدا شده است</string>
|
||||
<string name="no_recordings_in_folder_found">هیچ ضبطی یافت نشد \n در پوشه انتخاب شده</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Simple Voice Recorder</string>
|
||||
<string name="app_launcher_name">Ääninauhuri</string>
|
||||
<string name="recording_saved_successfully">Tallennus tallennettu onnistuneesti nimellä\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Tallennus tallennettu onnistuneesti</string>
|
||||
<string name="recording">Tallenne</string>
|
||||
<string name="no_recordings_found">Tämän sovelluksen tallennuksia ei löytynyt</string>
|
||||
<string name="no_recordings_in_folder_found">Tallenuksia ei löytynyt\nvalitusta kansiosta</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Simple Voice Recorder</string>
|
||||
<string name="app_launcher_name">Perekam suara</string>
|
||||
<string name="recording_saved_successfully">Rekaman berhasil disimpan sebagai\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Rekaman berhasil disimpan</string>
|
||||
<string name="recording">Rekaman</string>
|
||||
<string name="no_recordings_found">Tidak ada rekaman yang dibuat oleh aplikasi ini\nTelah ditemukan</string>
|
||||
<string name="no_recordings_in_folder_found">Tidak ada rekaman yang ditemukan\ndi folder yang dipilih</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Semplice Registratore di suoni</string>
|
||||
<string name="app_launcher_name">Registratore di suoni</string>
|
||||
<string name="recording_saved_successfully">Registrazione salvata con successo come\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Registrazione salvata con successo</string>
|
||||
<string name="recording">Registrazione</string>
|
||||
<string name="no_recordings_found">Nessuna registrazione creata da questa app trovata</string>
|
||||
<string name="no_recordings_in_folder_found">Non sono state trovate registrazioni\nnella cartela selezionata</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Simpleボイスレコーダー</string>
|
||||
<string name="app_launcher_name">ボイスレコーダー</string>
|
||||
<string name="recording_saved_successfully">録音は\n\"%s\"として保存されました</string>
|
||||
<string name="recording_saved_successfully">録音が正常に保存されました</string>
|
||||
<string name="recording">録音</string>
|
||||
<string name="no_recordings_found">このアプリで作成された録音はありません</string>
|
||||
<string name="no_recordings_in_folder_found">選択されたフォルダ内には、録音が見つかりません</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Paprastas Garso Įrašytuvas</string>
|
||||
<string name="app_launcher_name">Garso Įrašytuvas</string>
|
||||
<string name="recording_saved_successfully">Įrašas sėkmingai išsaugotas kaip\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Įrašas sėkmingai išsaugotas</string>
|
||||
<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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Eenvoudige Voicerecorder</string>
|
||||
<string name="app_launcher_name">Voicerecorder</string>
|
||||
<string name="recording_saved_successfully">Opname opgeslagen als\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Opname opgeslagen</string>
|
||||
<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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Prosty rejestrator głosu</string>
|
||||
<string name="app_launcher_name">Rejestrator głosu</string>
|
||||
<string name="recording_saved_successfully">Nagranie zapisano jako\n„%s”</string>
|
||||
<string name="recording_saved_successfully">Nagranie zapisano</string>
|
||||
<string name="recording">Nagrywanie</string>
|
||||
<string name="no_recordings_found">Nie znaleziono nagrań utworzonych\nprzez tę aplikację</string>
|
||||
<string name="no_recordings_in_folder_found">Nie znaleziono nagrań\nw wybranym folderze</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Simple Voice Recorder</string>
|
||||
<string name="app_launcher_name">Gravador de voz</string>
|
||||
<string name="recording_saved_successfully">Gravação guardada como\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Gravação guardada</string>
|
||||
<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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Simple Voice Recorder</string>
|
||||
<string name="app_launcher_name">Înregistrare voce</string>
|
||||
<string name="recording_saved_successfully">Înregistrare salvată cu succes ca\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Înregistrare salvată cu succes</string>
|
||||
<string name="recording">Înregistrare activă</string>
|
||||
<string name="no_recordings_found">Nu au fost găsite înregistrări create\nde această aplicație</string>
|
||||
<string name="no_recordings_in_folder_found">Nu au fost găsite înregistrări\nîn dosarul selectat</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Simple Voice Recorder</string>
|
||||
<string name="app_launcher_name">Диктофон</string>
|
||||
<string name="recording_saved_successfully">Запись успешно сохранена как\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Запись успешно сохранена</string>
|
||||
<string name="recording">Запись</string>
|
||||
<string name="no_recordings_found">Записи, созданные этим приложением,\nне найдены</string>
|
||||
<string name="no_recordings_in_folder_found">В выбранной папке не найдено\nни одной записи</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Jednoduchý nahrávač zvuku</string>
|
||||
<string name="app_launcher_name">Nahrávač zvuku</string>
|
||||
<string name="recording_saved_successfully">Nahrávka bola uložená ako \n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Nahrávka bola uložená</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">Vo zvolenom priečinku sa nenašli\nžiadne nahrávky</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Basit Ses Kaydedici</string>
|
||||
<string name="app_launcher_name">Ses Kaydedici</string>
|
||||
<string name="recording_saved_successfully">Kayıt \n\"%s\" olarak başarıyla kaydedildi</string>
|
||||
<string name="recording_saved_successfully">Kayıt başarıyla kaydedildi</string>
|
||||
<string name="recording">Kaydediliyor</string>
|
||||
<string name="no_recordings_found">Bu uygulama tarafından oluşturulan kayıt\nbulunamadı</string>
|
||||
<string name="no_recordings_in_folder_found">Seçili klasörde\nkayıt bulunamadı</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Simple Voice Recorder</string>
|
||||
<string name="app_launcher_name">Диктофон</string>
|
||||
<string name="recording_saved_successfully">Запис успішно збережений як\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Запис успішно збережений</string>
|
||||
<string name="recording">Запис</string>
|
||||
<string name="no_recordings_found">Записи, створені цим додатком,\nне знайдені</string>
|
||||
<string name="no_recordings_in_folder_found">В обраній теці, не знайдено\nжодного запису</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">简易录音机</string>
|
||||
<string name="app_launcher_name">录音机</string>
|
||||
<string name="recording_saved_successfully">录音成功保存为\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">录音成功保存</string>
|
||||
<string name="recording">录音中</string>
|
||||
<string name="no_recordings_found">未找到由此应用创建\n的录音</string>
|
||||
<string name="no_recordings_in_folder_found">未在选择的文件夹找到\n录音</string>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<resources>
|
||||
<string name="app_name">Simple Voice Recorder</string>
|
||||
<string name="app_launcher_name">Voice Recorder</string>
|
||||
<string name="recording_saved_successfully">Recording saved successfully as\n\"%s\"</string>
|
||||
<string name="recording_saved_successfully">Recording saved successfully</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>
|
||||
|
|
Loading…
Reference in New Issue