mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Fix missing toast message after write external storage permission is denied while saving an attachment.
`AttachmentSaver` was missing logic to show a toast message after the user denies `WRITE_EXTERNAL_STORAGE` permission. #### Changeset - Add missing toast after write external storage permission is denied. - Add unit test coverage for `AttachmentSaver` result messages. - Rename `AttachmentSaver` string resource names so they all have the same prefix.
This commit is contained in:
committed by
Cody Henthorne
parent
b6f98521c8
commit
0f72c6face
@@ -581,13 +581,6 @@
|
||||
<item quantity="one">Saving attachment to storage…</item>
|
||||
<item quantity="other">Saving %1$d attachments to storage…</item>
|
||||
</plurals>
|
||||
<!-- Dialog title asking to save media to your phone\'s storage -->
|
||||
<string name="ConversationFragment__save_to_phone">Save to phone?</string>
|
||||
<!-- Dialog message explaining that media will be saved to your phone and can potentially be accessed by other phones. -->
|
||||
<plurals name="ConversationFragment__this_media_will_be_saved">
|
||||
<item quantity="one">This media will be saved to your phone\'s storage. Other apps may be able to access it depending on your phone\'s permissions.</item>
|
||||
<item quantity="other">This media will be saved to your phone\'s storage. Other apps may be able to access it depending on your phone\'s permissions.</item>
|
||||
</plurals>
|
||||
<!-- Checkbox shown in dialog to not show the dialog again in future cases -->
|
||||
<string name="ConversationFragment_dont_show_again">Don\'t show again</string>
|
||||
<string name="ConversationFragment_pending">Pending…</string>
|
||||
@@ -2997,8 +2990,6 @@
|
||||
<string name="MediaPreviewActivity_you">You</string>
|
||||
<string name="MediaPreviewActivity_unssuported_media_type">Unsupported media type</string>
|
||||
<string name="MediaPreviewActivity_draft">Draft</string>
|
||||
<string name="MediaPreviewActivity_signal_needs_the_storage_permission_in_order_to_write_to_external_storage_but_it_has_been_permanently_denied">Signal needs the Storage permission in order to save to external storage, but it has been permanently denied. Please continue to app settings, select \"Permissions\", and enable \"Storage\".</string>
|
||||
<string name="MediaPreviewActivity_unable_to_write_to_external_storage_without_permission">Unable to save to external storage without permissions</string>
|
||||
<string name="MediaPreviewActivity_media_delete_confirmation_title">Delete message?</string>
|
||||
<string name="MediaPreviewActivity_media_delete_confirmation_message">This will permanently delete this message.</string>
|
||||
<string name="MediaPreviewActivity_s_to_s">%1$s to %2$s</string>
|
||||
@@ -3105,8 +3096,6 @@
|
||||
<!-- Notification channel name for notifications sent when a device has been linked -->
|
||||
<string name="NotificationChannel_new_linked_device">New linked device</string>
|
||||
|
||||
<!-- ProfileEditNameFragment -->
|
||||
|
||||
<!-- QuickResponseService -->
|
||||
<string name="QuickResponseService_quick_response_unavailable_when_Signal_is_locked">Quick response unavailable when Signal is locked!</string>
|
||||
<string name="QuickResponseService_problem_sending_message">Problem sending message!</string>
|
||||
@@ -3133,6 +3122,21 @@
|
||||
<item quantity="other">Error while saving attachments to storage!</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Dialog title asking to save media to your phone\'s storage -->
|
||||
<string name="AttachmentSaver__save_to_phone">Save to phone?</string>
|
||||
|
||||
<!-- Dialog message explaining that media will be saved to your phone and can potentially be accessed by other phones. -->
|
||||
<plurals name="AttachmentSaver__this_media_will_be_saved">
|
||||
<item quantity="one">This media will be saved to your phone\'s storage. Other apps may be able to access it depending on your phone\'s permissions.</item>
|
||||
<item quantity="other">This media will be saved to your phone\'s storage. Other apps may be able to access it depending on your phone\'s permissions.</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Message shown when the app requests permission to save media to the device storage, but that permission has been permanently denied by the user. -->
|
||||
<string name="AttachmentSaver__signal_needs_the_storage_permission_in_order_to_write_to_external_storage_but_it_has_been_permanently_denied">Signal needs the Storage permission in order to save to external storage, but it has been permanently denied. Please continue to app settings, select \"Permissions\", and enable \"Storage\".</string>
|
||||
|
||||
<!-- Message explaining that it is not possible to save media to the device storage after the user denied the system save to storage permission. -->
|
||||
<string name="AttachmentSaver__unable_to_write_to_external_storage_without_permission">Unable to save to external storage without permissions</string>
|
||||
|
||||
<!-- SearchToolbar -->
|
||||
<string name="SearchToolbar_search">Search</string>
|
||||
<!-- Hint when searching filtered chat content -->
|
||||
|
||||
Reference in New Issue
Block a user