summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2014-10-15 19:39:29 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-16 15:38:29 +0000
commit6d7f67eadf7cae75ec0ede5596c55b6585d73872 (patch)
tree06bc030538dc1d838ab716adc69252ee023af752 /android
parent450647a8a2e6f1e9f7474e1a5d82834e0d6cb594 (diff)
android: Show document browser back in the menu
Related with commit c7c2b4b54d8ab81150e9b71433970c2f338ed063. There is nothing wrong with having several activities; in fact Android development encourages using one activity per use case. After this patch we have: * One menu item that opens LibreOffice document browser. It covers the use case "open LibreOffice without documents". * The viewer activity does not have a menu item but it responds to open intents triggered by any applications like file explorers, including the document browser. Change-Id: Ie08b96e52d3a6a79aed3354620302705d7689381 Reviewed-on: https://gerrit.libreoffice.org/12108 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'android')
-rw-r--r--android/experimental/LOAndroid3/AndroidManifest.xml.in10
1 files changed, 2 insertions, 8 deletions
diff --git a/android/experimental/LOAndroid3/AndroidManifest.xml.in b/android/experimental/LOAndroid3/AndroidManifest.xml.in
index 119046a8ff13..c3a6b3185f62 100644
--- a/android/experimental/LOAndroid3/AndroidManifest.xml.in
+++ b/android/experimental/LOAndroid3/AndroidManifest.xml.in
@@ -17,15 +17,12 @@
android:label="@string/app_name"
android:hardwareAccelerated="true"
android:theme="@style/AppTheme">
+ <!-- Viewer Activity -->
<activity
android:name="org.libreoffice.LibreOfficeMainActivity"
android:label="@string/app_name"
android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|uiMode|screenSize|smallestScreenSize">
<intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- <intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.PICK" />
@@ -84,17 +81,14 @@
</intent-filter>
</activity>
<!-- Document Browser Activity -->
- <!-- Disable it here so that we don't present two icons.
- TODO Probably merge the two activities, so that the browser opens when LibreOffice is started with no document.
<activity android:name=".ui.LibreOfficeUIActivity"
- android:label="@string/browser_app_name"
+ android:label="@string/app_name"
android:theme="@android:style/Theme.Holo">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
- -->
</application>
</manifest>