simplify error string for error while opening PDF

This commit is contained in:
Daniel Micay 2022-05-06 10:09:15 -04:00
parent c6113df31d
commit 1a3e816cfc
2 changed files with 3 additions and 3 deletions

View File

@ -277,7 +277,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
try {
mInputStream = getContentResolver().openInputStream(mUri);
} 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);
}
@ -471,7 +471,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
}
mInputStream = getContentResolver().openInputStream(mUri);
} catch (IOException e) {
snackbar.setText(R.string.io_error).show();
snackbar.setText(R.string.error_while_opening).show();
return;
}

View File

@ -19,7 +19,7 @@
<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="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="webview_out_of_date_title">WebView out-of-date</string>