move code checking for file scheme
This commit is contained in:
parent
c8058db470
commit
b968ff2596
@ -302,12 +302,12 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
|
|||||||
mDocumentOrientationDegrees = savedInstanceState.getInt(STATE_DOCUMENT_ORIENTATION_DEGREES);
|
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 (mUri != null) {
|
||||||
|
if ("file".equals(mUri.getScheme())) {
|
||||||
|
snackbar.setText(R.string.legacy_file_uri).show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
loadPdf();
|
loadPdf();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user