From 950d33871d5ac4f4ab73f515a89b9e1b9a0ff91c Mon Sep 17 00:00:00 2001 From: Siqi Liu Date: Mon, 6 Apr 2015 12:10:09 +0200 Subject: [PATCH] add saving action placeholder Change-Id: Ibb4595e297a4328f2bb108e1b9e71bb50843e3b9 --- android/experimental/LOAndroid3/res/menu/main.xml | 8 ++++++-- android/experimental/LOAndroid3/res/values/strings.xml | 1 + .../src/java/org/libreoffice/LibreOfficeMainActivity.java | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/android/experimental/LOAndroid3/res/menu/main.xml b/android/experimental/LOAndroid3/res/menu/main.xml index 1a1c22a14cb6..979bbd1efec9 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"/> - + + diff --git a/android/experimental/LOAndroid3/res/values/strings.xml b/android/experimental/LOAndroid3/res/values/strings.xml index 939804dbb93e..0b9e7a23f752 100644 --- a/android/experimental/LOAndroid3/res/values/strings.xml +++ b/android/experimental/LOAndroid3/res/values/strings.xml @@ -38,5 +38,6 @@ Underline Italic Show keyboard + Save diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java index ed87f8c4ac74..466468794f09 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;