[Android] Change the tablet trigger to avoid displaying the large UI in mobile landscape

Nicolas Pomepuy git at videolan.org
Thu Dec 23 09:45:07 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Dec 17 11:10:58 2021 +0100| [6a88748a4c8fdc33721614022aa968f0f6033316] | committer: Nicolas Pomepuy

Change the tablet trigger to avoid displaying the large UI in mobile landscape

> https://code.videolan.org/videolan/vlc-android/commit/6a88748a4c8fdc33721614022aa968f0f6033316
---

 .../src/main/res/{values-w600dp => values-large}/booleans.xml       | 0
 application/resources/src/main/res/values-large/dimens.xml          | 6 ++++++
 application/resources/src/main/res/values-w600dp/dimens.xml         | 1 -
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/application/resources/src/main/res/values-w600dp/booleans.xml b/application/resources/src/main/res/values-large/booleans.xml
similarity index 100%
rename from application/resources/src/main/res/values-w600dp/booleans.xml
rename to application/resources/src/main/res/values-large/booleans.xml
diff --git a/application/resources/src/main/res/values-large/dimens.xml b/application/resources/src/main/res/values-large/dimens.xml
new file mode 100644
index 000000000..0799b0d5f
--- /dev/null
+++ b/application/resources/src/main/res/values-large/dimens.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<resources>
+    <!--MRLPanel-->
+    <dimen name="navigation_margin">72dp</dimen>
+</resources>
\ No newline at end of file
diff --git a/application/resources/src/main/res/values-w600dp/dimens.xml b/application/resources/src/main/res/values-w600dp/dimens.xml
index e43cc425f..7703bdbfa 100644
--- a/application/resources/src/main/res/values-w600dp/dimens.xml
+++ b/application/resources/src/main/res/values-w600dp/dimens.xml
@@ -6,5 +6,4 @@
     <dimen name="subs_dl_dialog_width">512dp</dimen>
     <dimen name="wizard_dialog_width">448dp</dimen>
     <dimen name="default_context_width">512dp</dimen>
-    <dimen name="navigation_margin">72dp</dimen>
 </resources>
\ No newline at end of file



More information about the Android mailing list