show a hint about resuming photo preview with a click

This commit is contained in:
tibbi 2017-05-07 13:13:07 +02:00
parent 1ed076a8f7
commit 01b3f5e952
15 changed files with 21 additions and 0 deletions

View File

@ -61,4 +61,8 @@ class Config(context: Context) : BaseConfig(context) {
var frontVideoResIndex: Int
get() = prefs.getInt(FRONT_VIDEO_RESOLUTION_INDEX, 0)
set(frontVideoResIndex) = prefs.edit().putInt(FRONT_VIDEO_RESOLUTION_INDEX, frontVideoResIndex).apply()
var wasPhotoPreviewHintShown: Boolean
get() = prefs.getBoolean(PHOTO_PREVIEW_HINT_SHOWN, false)
set(wasPhotoPreviewHintShown) = prefs.edit().putBoolean(PHOTO_PREVIEW_HINT_SHOWN, wasPhotoPreviewHintShown).apply()
}

View File

@ -16,6 +16,7 @@ val BACK_PHOTO_RESOLUTION_INDEX = "back_photo_resolution_index"
val BACK_VIDEO_RESOLUTION_INDEX = "back_video_resolution_index"
val FRONT_PHOTO_RESOLUTION_INDEX = "front_photo_resolution_index"
val FRONT_VIDEO_RESOLUTION_INDEX = "front_video_resolution_index"
val PHOTO_PREVIEW_HINT_SHOWN = "photo_preview_hint_shown"
val FLASH_OFF = 0
val FLASH_ON = 1

View File

@ -297,6 +297,10 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
private val takePictureCallback = Camera.PictureCallback { data, cam ->
if (config.isShowPreviewEnabled) {
mIsPreviewShown = true
if (!config.wasPhotoPreviewHintShown) {
context.toast(R.string.click_to_resume_preview)
config.wasPhotoPreviewHintShown = true
}
} else {
Handler().postDelayed({
resumePreview()

View File

@ -12,6 +12,7 @@
<string name="no_permissions">Ohne Zugriff auf Kamera und Speicher ist hier nicht viel zu tun</string>
<string name="no_audio_permissions">Wir benötigen Zugriff auf das Mirkofon um Videos aufnehmen zu können</string>
<string name="no_gallery_app_available">Keine Galerie App verfügbar</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">No hay mucho que hacer sin los permisos para acceder a la cámara y al almacenamiento</string>
<string name="no_audio_permissions">Se necesita el permiso de micrófono para grabar vídeos</string>
<string name="no_gallery_app_available">No hay disponible una aplicación de galería</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">Peu de choses à faire sans accès à ni la caméra ni la mémoire</string>
<string name="no_audio_permissions">Nous avons besoin de l\'autorisation sur l\'audio pour enregistrer des vidéos</string>
<string name="no_gallery_app_available">Pas d\'application album disponible</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">Non c\'è molto da fare senza l\'accesso alla fotocamera e all\'archiviazione</string>
<string name="no_audio_permissions">È necessario l\'accesso al microfono per registrare i video</string>
<string name="no_gallery_app_available">Nessuna app galleria disponibile</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">お使いのカメラやストレージにアクセスしないと、ほとんど行うことはありません</string>
<string name="no_audio_permissions">ビデオを記録するためにオーディオのアクセス許可が必要です</string>
<string name="no_gallery_app_available">利用可能なギャラリーアプリがありません</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">Nėra ką daryti kai kamera ir saugykla neprieinama</string>
<string name="no_audio_permissions">Mums reikia audio leidimo, kad įrašyti vaizdo bylas</string>
<string name="no_gallery_app_available">Nėra galerijos programėlės</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -13,6 +13,7 @@
<string name="no_permissions">Kan niets doen zonder toegang tot uw camera en opslag</string>
<string name="no_audio_permissions">Toestemming voor audio nodig is voor het opnemen van video\'s</string>
<string name="no_gallery_app_available">Geen gallery app beschikbaar</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">Ander</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">É necessária a permissão para acessar a câmera e o armazenamento</string>
<string name="no_audio_permissions">Necessitamos da permissão de áudio para gravar os vídeos</string>
<string name="no_gallery_app_available">Nenhum aplicativo de galeria disponível</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">outra</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">É necessária a permissão para aceder à câmara e ao armazenamento</string>
<string name="no_audio_permissions">Necessitamos da permissão de áudio para gravar os vídeos</string>
<string name="no_gallery_app_available">Nenhuma aplicação de galeria disponível</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">outra</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">Не так много можно сделать без доступа к камере и хранилищу</string>
<string name="no_audio_permissions">Нам нужно аудио разрешение для записи видео</string>
<string name="no_gallery_app_available">Нет доступного приложения-галереи</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">другое</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">Inte mycket att göra utan tillgång till din kamera och lagring</string>
<string name="no_audio_permissions">För att spela in video krävs ljudrättigheter</string>
<string name="no_gallery_app_available">Ingen galleri-app finns tillgänglig</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">other</string>

View File

@ -12,6 +12,7 @@
<string name="no_permissions">We can\'t do much without accessing your camera and storage</string>
<string name="no_audio_permissions">We need audio permission for recording videos</string>
<string name="no_gallery_app_available">No gallery app available</string>
<string name="click_to_resume_preview">Click on the image to resume preview</string>
<!-- other aspect ratio -->
<string name="other">other</string>