From 90ea9456434b361b173a15ebc93e256ab3392e54 Mon Sep 17 00:00:00 2001 From: Rui Ying Date: Sat, 10 Dec 2022 05:45:51 -0800 Subject: [PATCH] Fix Android file upload utf-8 issue by upstream fix --- src/assets/translations/en.ts | 2 -- src/assets/translations/zh.ts | 2 -- src/screens/AssignmentSubmission.tsx | 4 +--- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/assets/translations/en.ts b/src/assets/translations/en.ts index a400ffdc..a9f1b013 100644 --- a/src/assets/translations/en.ts +++ b/src/assets/translations/en.ts @@ -33,8 +33,6 @@ export default { assignmentSubmittionFailed: 'Failed to submit the assignment', submitAssignment: 'Submit Assignment', submitAssignmentConfirmation: 'Do you want to submit the assignment?', - submitAssignmentConfirmationAndroid: - 'Do you want to submit the assignment? Note: for Android users, any non-ascii characters in the filename will be stripped.', cancel: 'Cancel', ok: 'Ok', assignmentSubmittionContentPlaceholder: 'Enter assignment content here...', diff --git a/src/assets/translations/zh.ts b/src/assets/translations/zh.ts index 3081cbdc..02671d6c 100644 --- a/src/assets/translations/zh.ts +++ b/src/assets/translations/zh.ts @@ -31,8 +31,6 @@ export default { assignmentSubmittionFailed: '作业提交失败', submitAssignment: '提交作业', submitAssignmentConfirmation: '确定提交作业?', - submitAssignmentConfirmationAndroid: - '确定提交作业?注意:Android 用户上传文件时,文件名中的中文字符会被移除。', cancel: '取消', ok: '确定', assignmentSubmittionContentPlaceholder: '可在此处填写作业内容……', diff --git a/src/screens/AssignmentSubmission.tsx b/src/screens/AssignmentSubmission.tsx index 14febedf..091a3400 100644 --- a/src/screens/AssignmentSubmission.tsx +++ b/src/screens/AssignmentSubmission.tsx @@ -151,9 +151,7 @@ const AssignmentSubmission: React.FC< Alert.alert( t('submitAssignment'), - Platform.OS === 'android' - ? t('submitAssignmentConfirmationAndroid') - : t('submitAssignmentConfirmation'), + t('submitAssignmentConfirmation'), [ { text: t('cancel'),