simplify error string for error while opening PDF
This commit is contained in:
parent
c6113df31d
commit
1a3e816cfc
@ -277,7 +277,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
|
|||||||
try {
|
try {
|
||||||
mInputStream = getContentResolver().openInputStream(mUri);
|
mInputStream = getContentResolver().openInputStream(mUri);
|
||||||
} catch (FileNotFoundException ignored) {
|
} catch (FileNotFoundException ignored) {
|
||||||
snackbar.setText(R.string.io_error).show();
|
snackbar.setText(R.string.error_while_opening).show();
|
||||||
}
|
}
|
||||||
return new WebResourceResponse("application/pdf", null, mInputStream);
|
return new WebResourceResponse("application/pdf", null, mInputStream);
|
||||||
}
|
}
|
||||||
@ -471,7 +471,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
|
|||||||
}
|
}
|
||||||
mInputStream = getContentResolver().openInputStream(mUri);
|
mInputStream = getContentResolver().openInputStream(mUri);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
snackbar.setText(R.string.io_error).show();
|
snackbar.setText(R.string.error_while_opening).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<string name="invalid_mime_type">Cannot open file with invalid MIME type</string>
|
<string name="invalid_mime_type">Cannot open file with invalid MIME type</string>
|
||||||
<string name="legacy_file_uri">Cannot open legacy file paths from insecure apps</string>
|
<string name="legacy_file_uri">Cannot open legacy file paths from insecure apps</string>
|
||||||
<string name="io_error">Received I/O error trying to open content</string>
|
<string name="error_while_opening">Error encountered trying to open content</string>
|
||||||
<string name="error_while_saving">Error encountered while saving</string>
|
<string name="error_while_saving">Error encountered while saving</string>
|
||||||
|
|
||||||
<string name="webview_out_of_date_title">WebView out-of-date</string>
|
<string name="webview_out_of_date_title">WebView out-of-date</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user