fix(image-viewer): add downloading toast when sharing videos/gifs

This commit is contained in:
LucasGGamerM
2024-05-27 16:42:24 -03:00
parent 5e7f4bda82
commit e2e8173db6

View File

@@ -614,6 +614,8 @@ public class PhotoViewer implements ZoomPanView.Listener{
private void shareAfterDownloading(Attachment att){ private void shareAfterDownloading(Attachment att){
Uri uri=Uri.parse(att.url); Uri uri=Uri.parse(att.url);
Toast.makeText(activity, R.string.downloading, Toast.LENGTH_SHORT).show();
MastodonAPIController.runInBackground(()->{ MastodonAPIController.runInBackground(()->{
try { try {
OkHttpClient client = new OkHttpClient(); OkHttpClient client = new OkHttpClient();