Kaydet (Commit) 64eb2123 authored tarafından Miklos Vajna's avatar Miklos Vajna

android: make the 'more info' document accessible from the about dialog

Now that the default activity is not the viewer, but the document
browser, there is no way to show the introduction document. Add a button
to the about dialog to still show it.

Change-Id: I9252064aaaf4c49da519e17b651e0d290bc17c04
üst 7c181e5e
......@@ -9,6 +9,7 @@
<string name="about_license">Show License</string>
<string name="about_notice">Show Notice</string>
<string name="about_moreinfo">More Info</string>
<string name="browser_app_name">LibreOffice Browser</string>
<string name="menu_search">Search</string>
......
......@@ -218,6 +218,15 @@ public class LibreOfficeMainActivity extends Activity {
}
});
builder.setNeutralButton(R.string.about_moreinfo, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
LOKitShell.sendEvent(LOEventFactory.close());
LOKitShell.sendEvent(LOEventFactory.load(DEFAULT_DOC_PATH));
dialog.dismiss();
}
});
AlertDialog dialog = builder.create();
dialog.show();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment