Skip to content

Commit

Permalink
explain asking for gallery permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Oct 12, 2023
1 parent 18b0135 commit 86aca48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/thoughtcrime/securesms/mms/AttachmentManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ public static void selectDocument(Activity activity, int requestCode) {
}

public static void selectGallery(Activity activity, int requestCode) {
// to enable camera roll,
// we're asking for "gallery permissions" also on newer systems that do not strictly require that.
// (asking directly after tapping "attachment" would be not-so-good as the user may want to attach sth. else
// and asking for permissions is better done on-point)
Permissions.with(activity)
.request(Permissions.galleryPermissions())
.ifNecessary()
Expand Down

0 comments on commit 86aca48

Please sign in to comment.