Skip to content

Commit

Permalink
fix for Samsung phones, #129
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Sep 4, 2022
1 parent 9467d22 commit 1527008
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/src/main/java/co/tinode/tindroid/MessagesFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,7 @@ public class MessagesFragment extends Fragment {

final Bundle args = new Bundle();
final Intent data = result.getData();
if (data == null) {
return;
}
Uri localUri = data.getData();
Uri localUri = data != null ? data.getData() : null;
if (localUri != null) {
// Image from the gallery.
args.putParcelable(AttachmentHandler.ARG_LOCAL_URI, localUri);
Expand Down

0 comments on commit 1527008

Please sign in to comment.