[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - android/experimental
Siqi Liu
me at siqi.fr
Mon Apr 6 03:10:37 PDT 2015
android/experimental/LOAndroid3/res/menu/main.xml | 8 ++++++--
android/experimental/LOAndroid3/res/values/strings.xml | 1 +
android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java | 4 ++++
3 files changed, 11 insertions(+), 2 deletions(-)
New commits:
commit 9d7142cd2615d1365b36d831be81d2adbde010bc
Author: Siqi Liu <me at siqi.fr>
Date: Mon Apr 6 12:10:09 2015 +0200
add saving action placeholder
Change-Id: Ibb4595e297a4328f2bb108e1b9e71bb50843e3b9
diff --git a/android/experimental/LOAndroid3/res/menu/main.xml b/android/experimental/LOAndroid3/res/menu/main.xml
index 1a1c22a..979bbd1 100644
--- a/android/experimental/LOAndroid3/res/menu/main.xml
+++ b/android/experimental/LOAndroid3/res/menu/main.xml
@@ -28,11 +28,15 @@
android:orderInCategory="100"
app:showAsAction="always"/>
- <item android:id="@+id/action_about"
- android:title="@string/action_about"
+ <item android:id="@+id/action_save"
+ android:title="@string/action_save"
android:orderInCategory="100" />
<item android:id="@+id/action_parts"
android:title="@string/action_parts"
android:orderInCategory="100" />
+
+ <item android:id="@+id/action_about"
+ android:title="@string/action_about"
+ android:orderInCategory="100" />
</menu>
diff --git a/android/experimental/LOAndroid3/res/values/strings.xml b/android/experimental/LOAndroid3/res/values/strings.xml
index 939804d..0b9e7a2 100644
--- a/android/experimental/LOAndroid3/res/values/strings.xml
+++ b/android/experimental/LOAndroid3/res/values/strings.xml
@@ -38,5 +38,6 @@
<string name="action_underline">Underline</string>
<string name="action_italic">Italic</string>
<string name="action_keyboard">Show keyboard</string>
+ <string name="action_save">Save</string>
</resources>
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
index ed87f8c..4664687 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
@@ -16,6 +16,7 @@ import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView;
import android.widget.ListView;
+import android.widget.Toast;
import org.libreoffice.overlay.TextCursorLayer;
import org.mozilla.gecko.ZoomConstraints;
@@ -90,6 +91,9 @@ public class LibreOfficeMainActivity extends ActionBarActivity {
case R.id.action_about:
mAbout.showAbout();
return true;
+ case R.id.action_save:
+ Toast.makeText(this, "saving the document...", Toast.LENGTH_SHORT).show();
+ return true;
case R.id.action_parts:
mDrawerLayout.openDrawer(mDrawerList);
return true;
More information about the Libreoffice-commits
mailing list