add Audio to i18n and minor tweak
This commit is contained in:
parent
d39a5c7da2
commit
53ed61df39
|
@ -127,10 +127,10 @@ const ImageContainer = React.memo(
|
||||||
title_link: imageUri
|
title_link: imageUri
|
||||||
}));
|
}));
|
||||||
setCached(true);
|
setCached(true);
|
||||||
setLoading(false);
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setLoading(false);
|
|
||||||
setCached(false);
|
setCached(false);
|
||||||
|
} finally {
|
||||||
|
setLoading(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -119,18 +119,15 @@ const Video = React.memo(
|
||||||
...prev,
|
...prev,
|
||||||
video_url: cachedVideoResult.file?.uri
|
video_url: cachedVideoResult.file?.uri
|
||||||
}));
|
}));
|
||||||
setCached(true);
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
setCached(true);
|
||||||
if (downloadActive) {
|
if (downloadActive) {
|
||||||
cancelDownload(video);
|
cancelDownload(video);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (downloadActive && !isReply) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
setLoading(false);
|
|
||||||
if (isReply) {
|
if (isReply) {
|
||||||
|
setLoading(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await handleAutoDownload();
|
await handleAutoDownload();
|
||||||
|
@ -162,6 +159,8 @@ const Video = React.memo(
|
||||||
video_url: videoUri
|
video_url: videoUri
|
||||||
}));
|
}));
|
||||||
setCached(true);
|
setCached(true);
|
||||||
|
} catch {
|
||||||
|
setCached(false);
|
||||||
} finally {
|
} finally {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -730,5 +730,6 @@
|
||||||
"Video": "Video",
|
"Video": "Video",
|
||||||
"Wi_Fi_and_mobile_data":"Wi-Fi and mobile data",
|
"Wi_Fi_and_mobile_data":"Wi-Fi and mobile data",
|
||||||
"Wi_Fi": "Wi-Fi",
|
"Wi_Fi": "Wi-Fi",
|
||||||
"Off": "Off"
|
"Off": "Off",
|
||||||
|
"Audio": "Audio"
|
||||||
}
|
}
|
|
@ -718,5 +718,6 @@
|
||||||
"Video": "Vídeo",
|
"Video": "Vídeo",
|
||||||
"Wi_Fi_and_mobile_data":"Wi-Fi e dados móveis",
|
"Wi_Fi_and_mobile_data":"Wi-Fi e dados móveis",
|
||||||
"Wi_Fi": "Wi-Fi",
|
"Wi_Fi": "Wi-Fi",
|
||||||
"Off": "Desativado"
|
"Off": "Desativado",
|
||||||
|
"Audio": "Áudio"
|
||||||
}
|
}
|
Loading…
Reference in New Issue