android/experimental/LOAndroid3/res/values/strings.xml                         
       |    1 +
 
android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
 |    9 +++++++++
 2 files changed, 10 insertions(+)

New commits:
commit 64eb2123d41e09639568cfed1e0e49de5a2deda4
Author: Miklos Vajna <[email protected]>
Date:   Wed Dec 17 09:28:05 2014 +0100

    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

diff --git a/android/experimental/LOAndroid3/res/values/strings.xml 
b/android/experimental/LOAndroid3/res/values/strings.xml
index 857b00c..ea505d7 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 16d0edf..ff7bb43 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();
     }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to