Skip to content

Commit de576fb

Browse files
author
name
committed
log when ACTION_VIEW intent MIME type is null
1 parent ddc450c commit de576fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,9 @@ public void onZoomEnd() {
398398
snackbar.setText(R.string.invalid_mime_type).show();
399399
return;
400400
}
401+
if (type == null) {
402+
Log.w(TAG, "MIME type is null, but we'll try to load it anyway");
403+
}
401404
mUri = intent.getData();
402405
mPage = 1;
403406
}

0 commit comments

Comments
 (0)