[Android] Lock TV activities to landscape

Geoffrey Métais git at videolan.org
Fri Jan 13 12:04:32 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan 13 12:03:51 2017 +0100| [44aee17420317ac8a2f65a638cb13b702a1b30d2] | committer: Geoffrey Métais

Lock TV activities to landscape

> https://code.videolan.org/videolan/vlc-android/commit/44aee17420317ac8a2f65a638cb13b702a1b30d2
---

 vlc-android/AndroidManifest.xml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index 3803844..aca3579 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -535,30 +535,38 @@
             android:name="org.videolan.vlc.gui.tv.MainTvActivity"
             android:label="@string/app_name"
             android:launchMode="singleInstance"
+            android:screenOrientation="landscape"
             android:theme="@style/Theme.VLC.TV" />
         <activity
             android:name="org.videolan.vlc.gui.tv.DetailsActivity"
             android:exported="true"
+            android:screenOrientation="landscape"
             android:theme="@style/Theme.Leanback.Details" />
         <activity
             android:name=".gui.tv.browser.VerticalGridActivity"
             android:exported="true"
+            android:screenOrientation="landscape"
             android:theme="@style/Theme.VLC.TV"  />
         <activity
             android:name="org.videolan.vlc.gui.tv.SearchActivity"
             android:exported="true"
+            android:screenOrientation="landscape"
             android:theme="@style/Theme.VLC.TV"  />
         <activity
             android:name="org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity"
             android:exported="true"
             android:launchMode="singleTask"
+            android:screenOrientation="landscape"
             android:allowTaskReparenting="true"
             android:theme="@style/Theme.VLC.TV"  />
         <activity android:name=".gui.tv.preferences.PreferencesActivity"
+            android:screenOrientation="landscape"
             android:theme="@style/Theme.VLC.Leanback.Preferences" />
         <activity android:name=".gui.tv.AboutActivity"
+            android:screenOrientation="landscape"
             android:theme="@style/Theme.VLC.TV"  />
         <activity android:name=".gui.tv.LicenceActivity"
+            android:screenOrientation="landscape"
             android:theme="@style/Theme.VLC.TV"  />
 
         <service



More information about the Android mailing list