Skip to content

Commit

Permalink
add toast on completion of download, missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Nov 20, 2022
1 parent 746e237 commit eec45fb
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/co/tinode/tindroid/ImageViewFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,10 @@ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
filename = getResources().getString(R.string.tinode_image);
}
Bitmap bmp = ((BitmapDrawable) mImageView.getDrawable()).getBitmap();
MediaStore.Images.Media.insertImage(activity.getContentResolver(), bmp, filename, null);
String savedAt = MediaStore.Images.Media.insertImage(activity.getContentResolver(), bmp,
filename, null);
Toast.makeText(activity, savedAt != null ? R.string.image_download_success :
R.string.failed_to_save_download, Toast.LENGTH_LONG).show();
} else {
return super.onOptionsItemSelected(item);
}
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,7 @@
<string name="voice_calls_limited">Sie können einige eingehende Sprachanrufe nicht empfangen.</string>
<string name="copied_to_clipboard">Copied to clipboard</string>
<string name="image_preview">Bildvorschau</string>
<string name="image_download_success">Bild in Galerie gespeichert</string>
<string name="in_progress_call">in Arbeit</string>
<string name="connecting_call">verbinden</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,7 @@
<string name="voice_calls_limited">No podrá recibir algunas llamadas de voz entrantes.</string>
<string name="copied_to_clipboard">Copiar al portapapeles</string>
<string name="image_preview">Vista previa de la imagen</string>
<string name="image_download_success">Imagen guardada en la galería</string>
<string name="in_progress_call">en progreso</string>
<string name="connecting_call">de conexión</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,7 @@
<string name="voice_calls_limited">Vous ne pourrez pas recevoir certains appels vocaux entrants.</string>
<string name="copied_to_clipboard">Copié dans le presse-papiers</string>
<string name="image_preview">Aperçu de l\'image</string>
<string name="image_download_success">Image enregistrée dans la galerie</string>
<string name="in_progress_call">en cours</string>
<string name="connecting_call">de connexion</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-ko/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,4 +318,7 @@
<string name="voice_calls_limited">일부 수신 음성 전화를 받을 수 없습니다.</string>
<string name="copied_to_clipboard">클립보드에 복사 되었습니다</string>
<string name="image_preview">이미지 미리보기</string>
<string name="image_download_success">갤러리에 저장된 이미지</string>
<string name="in_progress_call">통화 중</string>
<string name="connecting_call">연결 호출</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,7 @@
<string name="voice_calls_limited">Вы не сможете принимать некоторые входящие звонки.</string>
<string name="copied_to_clipboard">Скопировано в буфер обмена</string>
<string name="image_preview">Превью картинки</string>
<string name="image_download_success">Изображение сохранено в галерее</string>
<string name="in_progress_call">в процессе</string>
<string name="connecting_call">соединяемся</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,7 @@
<string name="voice_calls_limited">您將無法接聽某些來電。</string>
<string name="copied_to_clipboard">拷貝成功</string>
<string name="image_preview">圖像預覽</string>
<string name="image_download_success">圖片已保存到圖庫</string>
<string name="in_progress_call">通話中</string>
<string name="connecting_call">連接</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,7 @@
<string name="voice_calls_limited">您将无法接听某些来电。</string>
<string name="copied_to_clipboard">复制成功</string>
<string name="image_preview">图像预览</string>
<string name="image_download_success">图片已保存到画廊</string>
<string name="in_progress_call">通话中</string>
<string name="connecting_call">连接</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -338,5 +338,6 @@
<string name="voice_calls_limited">You will not be able to receive some incoming voice calls.</string>
<string name="copied_to_clipboard">Copied to clipboard</string>
<string name="image_preview">Image preview</string>
<string name="image_download_success">Image saved to gallery</string>

</resources>

0 comments on commit eec45fb

Please sign in to comment.