For Meta Quest devices running Horizon OS, it is required
that the default activity size is set to 1024x640,
see also [1].
Add a new product flavor "quest" with an additional
AndroidManifest_quest.xml that sets the corresponding
attributes for the 2 main activities.
Due to the manifest merge logic as described at [2],
it is sufficient to only specify those extra
attributes. The rest is taken from the main
AndroidManifest.xml used for all build flavors.
This makes the LibreOffice Viewer app on a Meta Quest 3
VR headset open in the specified size in landscape mode,
while it was previously opening in a smaller window in
portrait mode.
Also, disable the experimental editing mode for that product
flavor, as it seems to be even more experimental when tested
on a Meta Quest than on another Android device.
(Document UI doesn't update while typing.)
The build flavor can either manually be selected in
Android Studio ("Build" -> "Select Build Variant")
or specified for the gradle target, e.g.
./gradlew assembleQuestRelease
[1] https://developers.meta.com/horizon/documentation/android-apps/panel-sizing
[2] https://developer.android.com/build/manage-manifests#merge-manifests
Change-Id: Ia2b234f50694553d2b3458e4c57e8bb1b1a5baa8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194532
Code-Style: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
19 lines
725 B
XML
19 lines
725 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<application>
|
|
<!-- set a default activity size of 1024x640,
|
|
see https://developers.meta.com/horizon/documentation/android-apps/panel-sizing -->
|
|
<activity
|
|
android:name=".LibreOfficeMainActivity">
|
|
<layout
|
|
android:defaultHeight="640dp"
|
|
android:defaultWidth="1024dp" />
|
|
</activity>
|
|
<activity android:name="org.libreoffice.ui.LibreOfficeUIActivity">
|
|
<layout
|
|
android:defaultHeight="640dp"
|
|
android:defaultWidth="1024dp" />
|
|
</activity>
|
|
</application>
|
|
</manifest>
|