Skip to content

Commit

Permalink
Fix gallery intent
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Nov 1, 2024
1 parent 31abd54 commit 1e159b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions android/app/src/main/java/dev/danielc/fujiapp/Backend.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public static void init() {

static Thread discoveryThread = null;
public static void discoveryThread(Context ctx) {
// Not the greatest thread safety here
if (discoveryThread != null) {
Log.d("backend", "Discovery thread already running");
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public FileThumbAdapter(Context context, String directory) {
public void imageClickHandler(ImageViewHolder holder) {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(holder.filename), "image/*");
intent.setDataAndType(Uri.parse("file://" + holder.filename), "image/*");
holder.image.getContext().startActivity(intent);
}

Expand Down

0 comments on commit 1e159b2

Please sign in to comment.