1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-06 03:50:19 +02:00

Merge branch 'ice-cream-sandwich' into yota2

This commit is contained in:
Nikolay Pultsin 2015-10-20 02:18:19 +01:00
commit 7b5a2b68b0

View file

@ -74,14 +74,12 @@ class ExternalFileOpener implements FBReaderApp.ExternalFileOpener {
}
private void showErrorDialog(final ExternalFormatPlugin plugin, final Book book) {
final ZLResource dialogResource = ZLResource.resource("dialog");
final ZLResource buttonResource = dialogResource.getResource("button");
final String title =
dialogResource.getResource("missingPlugin").getResource("title").getValue()
.replace("%s", plugin.supportedFileType());
final ZLResource rootResource = ZLResource.resource("dialog");
final ZLResource buttonResource = rootResource.getResource("button");
final ZLResource dialogResource = rootResource.getResource("missingPlugin");
final AlertDialog.Builder builder = new AlertDialog.Builder(myReader)
.setTitle(title)
.setIcon(0)
.setTitle(dialogResource.getValue())
.setMessage(dialogResource.getResource("message").getValue().replace("%s", plugin.supportedFileType()))
.setPositiveButton(buttonResource.getResource("yes").getValue(), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {