summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-17 09:28:05 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-17 09:30:01 +0100
commit64eb2123d41e09639568cfed1e0e49de5a2deda4 (patch)
treea5e0627c3737531df0f78527da9c96f0cd7fa4c7 /android
parent7c181e5e0aa218ba0abff6c8ea42e107f59bf3f0 (diff)
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
Diffstat (limited to 'android')
-rw-r--r--android/experimental/LOAndroid3/res/values/strings.xml1
-rw-r--r--android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java9
2 files changed, 10 insertions, 0 deletions
diff --git a/android/experimental/LOAndroid3/res/values/strings.xml b/android/experimental/LOAndroid3/res/values/strings.xml
index 857b00c070b0..ea505d7e5f3e 100644
--- a/android/experimental/LOAndroid3/res/values/strings.xml
+++ b/android/experimental/LOAndroid3/res/values/strings.xml
@@ -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>
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
index 16d0edf9bf9f..ff7bb4313df3 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
@@ -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();
}