Skip to content

Commit

Permalink
move code checking for file scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed May 28, 2020
1 parent c8058db commit b968ff2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java
Expand Up @@ -302,12 +302,12 @@ public void onZoomEnd() {
mDocumentOrientationDegrees = savedInstanceState.getInt(STATE_DOCUMENT_ORIENTATION_DEGREES);
}

if ("file".equals(mUri.getScheme())) {
snackbar.setText(R.string.legacy_file_uri).show();
return;
}

if (mUri != null) {
if ("file".equals(mUri.getScheme())) {
snackbar.setText(R.string.legacy_file_uri).show();
return;
}

loadPdf();
}
}
Expand Down

0 comments on commit b968ff2

Please sign in to comment.