add a new error message if setting proper resolution fails

This commit is contained in:
tibbi 2018-02-26 12:37:53 +01:00
parent f0fb06f111
commit 5f4e10c4aa
17 changed files with 17 additions and 1 deletions

View File

@ -205,7 +205,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
}.sortedByDescending { it.width * it.height }
if (index == -1) {
mActivity?.toast(R.string.unknown_error_occurred)
mActivity?.toast(R.string.setting_resolution_failed)
index = getDefaultFullscreenResolution(resolutions) ?: 0
}

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">أخفق تبديل الكاميرا</string>
<string name="click_to_resume_preview">انقر على الصورة لاستئناف المعاينة</string>
<string name="photo_not_saved">تعذر حفظ الصورة</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">آخرى</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Kamerawechsel fehlgeschlagen</string>
<string name="click_to_resume_preview">Klicke auf das Bild, um bei der Vorschau zu bleiben</string>
<string name="photo_not_saved">Das Foto konnte nicht gespeichert werden</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">andere</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Ha fallado el cambio de cámara</string>
<string name="click_to_resume_preview">Haga clic en la imagen para reanudar la vista previa</string>
<string name="photo_not_saved">The photo could not be saved</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">otro</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">La permutation de caméra a échouée</string>
<string name="click_to_resume_preview">Cliquer sur l\'image pour resume preview</string>
<string name="photo_not_saved">La photo ne peut pas être sauvegardée</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">autre</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Fallou o cambio de cámara</string>
<string name="click_to_resume_preview">Pulse na imaxe para voltar a vista previa</string>
<string name="photo_not_saved">Non se puido gardar a fotografía</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">outro</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Cambio fotocamera fallito</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<string name="photo_not_saved">The photo could not be saved</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">カメラの切り替えに失敗しました</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<string name="photo_not_saved">この画像は保存されていません</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Kameros perjungimas nepavyko</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<string name="photo_not_saved">The photo could not be saved</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Schakelen camera is mislukt</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<string name="photo_not_saved">The photo could not be saved</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">Ander</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Przełączenie kamery nie powiodło się</string>
<string name="click_to_resume_preview">Kliknij obraz, aby wznowić podgląd</string>
<string name="photo_not_saved">Nie mogłem zapisać zdjęcia</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">inne</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Falha ao mudar de câmera</string>
<string name="click_to_resume_preview">Clique na imagem para resumir a pré-visualização</string>
<string name="photo_not_saved">A foto não pôde ser salva</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">outra</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Falha ao mudar de câmara</string>
<string name="click_to_resume_preview">Clique na imagem para continuar com a pré-visualização</string>
<string name="photo_not_saved">Não foi possível guardar a foto</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">outra</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Не удалось переключить камеру</string>
<string name="click_to_resume_preview">Чтобы возобновить предпросмотр, нажмите на изображение</string>
<string name="photo_not_saved">Не удалось сохранить фото</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">другое</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Prepnutie fotoaparátu zlyhalo</string>
<string name="click_to_resume_preview">Pre pokračovanie prehliadania kliknite na obrázok</string>
<string name="photo_not_saved">Fotografiu sa nepodarilo uložiť</string>
<string name="setting_resolution_failed">Nepodarilo sa nastaviť správne rozlíšenie</string>
<!-- other aspect ratio -->
<string name="other">iný</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Byte av kamera misslyckades</string>
<string name="click_to_resume_preview">Klicka på bilden för att återuppta förhandsgranskningen</string>
<string name="photo_not_saved">Fotot kunde inte sparas</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">annat</string>

View File

@ -10,6 +10,7 @@
<string name="camera_switch_error">Switching camera failed</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<string name="photo_not_saved">The photo could not be saved</string>
<string name="setting_resolution_failed">Setting proper resolution failed</string>
<!-- other aspect ratio -->
<string name="other">other</string>