add early check for file URI
This commit is contained in:
parent
d6308c409a
commit
89ce54c53a
@ -288,6 +288,10 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
|
||||
return;
|
||||
}
|
||||
mUri = intent.getData();
|
||||
if ("file".equals(mUri.getScheme())) {
|
||||
Log.e(TAG, "invalid legacy file URI: " + mUri);
|
||||
return;
|
||||
}
|
||||
mPage = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user