Skip to content

Commit

Permalink
load the image using the fileprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Jul 3, 2018
1 parent decc74a commit 45fc1f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/havenapp/main/ui/EventTriggerAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ public boolean onLongClick(View view) {
break;
case EventTrigger.CAMERA:
holder.image.setVisibility(View.VISIBLE);
Picasso.get().load(eventTriggerImagePaths.get(position)).into(holder.image);

Uri fileUri = FileProvider.getUriForFile(
context,
AUTHORITY,
new File(eventTrigger.getPath()));
Picasso.get().load(fileUri).into(holder.image);
holder.image.setOnClickListener(view -> {

int startPosition = 0;
Expand Down

0 comments on commit 45fc1f4

Please sign in to comment.