Skip to content

Commit

Permalink
Fix Android file upload utf-8 issue by upstream fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed Dec 10, 2022
1 parent 8000f9e commit 90ea945
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions src/assets/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...',
Expand Down
2 changes: 0 additions & 2 deletions src/assets/translations/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export default {
assignmentSubmittionFailed: '作业提交失败',
submitAssignment: '提交作业',
submitAssignmentConfirmation: '确定提交作业?',
submitAssignmentConfirmationAndroid:
'确定提交作业?注意:Android 用户上传文件时,文件名中的中文字符会被移除。',
cancel: '取消',
ok: '确定',
assignmentSubmittionContentPlaceholder: '可在此处填写作业内容……',
Expand Down
4 changes: 1 addition & 3 deletions src/screens/AssignmentSubmission.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ const AssignmentSubmission: React.FC<

Alert.alert(
t('submitAssignment'),
Platform.OS === 'android'
? t('submitAssignmentConfirmationAndroid')
: t('submitAssignmentConfirmation'),
t('submitAssignmentConfirmation'),
[
{
text: t('cancel'),
Expand Down

0 comments on commit 90ea945

Please sign in to comment.