[Android] PopupLayout: let the core know about window size as soon as we know it

Steve Lhomme git at videolan.org
Thu Mar 12 13:37:48 UTC 2026


vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Dec  4 08:24:01 2025 +0100| [059863e13a744c8c853299e40a83862821c7313e] | committer: Steve Lhomme

PopupLayout: let the core know about window size as soon as we know it

> https://code.videolan.org/videolan/vlc-android/commit/059863e13a744c8c853299e40a83862821c7313e
---

 application/vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.kt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.kt b/application/vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.kt
index 95f9f39f26..3f08e8ec0c 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/view/PopupLayout.kt
@@ -125,6 +125,8 @@ class PopupLayout : ConstraintLayout, ScaleGestureDetector.OnScaleGestureListene
             popupWidth = (popupHeight.toFloat() * ratio).toInt()
         }
 
+        vlcVout?.setWindowSize(popupWidth, popupHeight)
+
         val params = WindowManager.LayoutParams(
                 popupWidth,
                 popupHeight,
@@ -186,6 +188,7 @@ class PopupLayout : ConstraintLayout, ScaleGestureDetector.OnScaleGestureListene
         scaleFactor = scaleFactor.coerceIn(0.1, 5.0)
         popupWidth = (width * scaleFactor).toInt()
         popupHeight = (height * scaleFactor).toInt()
+        vlcVout?.setWindowSize(popupWidth, popupHeight)
         return true
     }
 



More information about the Android mailing list