Skip to content

Commit

Permalink
Add a case when we are sharing media from the device (#1817)
Browse files Browse the repository at this point in the history
  • Loading branch information
marecar3 authored Jan 31, 2020
1 parent 682e093 commit 0ff45c3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,12 @@ public void appendUploadMediaFiles(ArrayList<Media> mediaList) {
rnMediaList.addAll(mediaList);
mPendingMediaUploadCallback.onUploadMediaFileSelected(rnMediaList);
}
} else {
// This case is for media that is shared from the device
for (Media mediaToAppend : mediaList) {
sendOrDeferAppendMediaSignal(mediaToAppend.getId(), mediaToAppend.getUrl(),
mediaToAppend.getType());
}
}

mAppendsMultipleSelectedToSiblingBlocks = false;
Expand Down

0 comments on commit 0ff45c3

Please sign in to comment.