diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-10-01 19:54:08 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-10-04 17:51:09 +0200 |
commit | 3e31057f5a8336d84d1b321cfb1db6b008035148 (patch) | |
tree | 3958ceab84c7266847800122a03ecf74c8afdc77 /android | |
parent | 32fe0017ee87d21eb4bf16efa42ab0328bb159e4 (diff) |
android: clicking "Parts" in preferences opens the side drawer
Change-Id: I3cfd0a31409f6a798c933dae4a47b75e93601f6b
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java index a37438e1a22c..1fce7d4616d5 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java @@ -63,9 +63,13 @@ public class LibreOfficeMainActivity extends Activity { @Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); - if (id == R.id.action_about) { - showAbout(); - return true; + switch (id) { + case R.id.action_about: + showAbout(); + return true; + case R.id.action_parts: + mDrawerLayout.openDrawer(mDrawerList); + return true; } return super.onOptionsItemSelected(item); } |