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:
commit
7b5a2b68b0
1 changed files with 5 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue