diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2015-02-09 14:10:29 +0100 |
---|---|---|
committer | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2015-06-10 17:15:59 +0000 |
commit | ba44368da5933040080da611aa1722491f89df69 (patch) | |
tree | 0215f3b162eb98aaeff5f19c2637c82138006e78 | |
parent | 79f5d4465c7a2446f3d54bca56f9987f322d59e8 (diff) |
Android: add menu entry for document provider settings
Change-Id: Ic48275fe2e7d83fd5e77171f4f5740a527dec7e2
Reviewed-on: https://gerrit.libreoffice.org/16195
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
-rw-r--r-- | android/source/res/menu/view_menu.xml | 2 | ||||
-rw-r--r-- | android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/android/source/res/menu/view_menu.xml b/android/source/res/menu/view_menu.xml index 32825b5287cc..b89ff30d2238 100644 --- a/android/source/res/menu/view_menu.xml +++ b/android/source/res/menu/view_menu.xml @@ -10,6 +10,8 @@ android:title="@string/menu_sort_az"/> <item android:id="@+id/menu_sort_modified" android:title="@string/menu_sort_modified"/> + <item android:id="@+id/menu_storage_preferences" + android:title="@string/storage_provider_settings"/> <item android:id="@+id/action_about" android:title="@string/action_about" android:orderInCategory="100"/> diff --git a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java index 76842ec77357..a8f42765a873 100644 --- a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java +++ b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java @@ -53,6 +53,7 @@ import org.libreoffice.LibreOfficeMainActivity; import org.libreoffice.R; import org.libreoffice.SettingsActivity; import org.libreoffice.storage.DocumentProviderFactory; +import org.libreoffice.storage.DocumentProviderSettingsActivity; import org.libreoffice.storage.IDocumentProvider; import org.libreoffice.storage.IFile; @@ -461,6 +462,10 @@ public class LibreOfficeUIActivity extends ActionBarActivity implements ActionBa case R.id.action_settings: startActivity(new Intent(getApplicationContext(), SettingsActivity.class)); return true; + case R.id.menu_storage_preferences: + startActivity(new Intent(this, DocumentProviderSettingsActivity.class));; + break; + default: return super.onOptionsItemSelected(item); } |