add early check for file URI

This commit is contained in:
Daniel Micay 2020-04-11 12:28:51 -04:00
parent d6308c409a
commit 89ce54c53a

View File

@ -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;
}