[Android] PopupManager: fix indentation

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 Jan  8 14:53:17 2026 +0100| [c9a5ad6f89f132853234e15d510de07087d115a9] | committer: Steve Lhomme

PopupManager: fix indentation

No functional changes.

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

 .../src/org/videolan/vlc/gui/video/PopupManager.kt | 54 +++++++++++-----------
 1 file changed, 27 insertions(+), 27 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/PopupManager.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/PopupManager.kt
index 58810a1762..1e4204fa5b 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/PopupManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/PopupManager.kt
@@ -182,37 +182,37 @@ class PopupManager(private val service: PlaybackService) : PlaybackService.Callb
         }
         else
         {
-        // sanity check
-        if (displayW * displayH == 0) {
-            Log.e(TAG, "Invalid surface size")
-            return
-        }
+            // sanity check
+            if (displayW * displayH == 0) {
+                Log.e(TAG, "Invalid surface size")
+                return
+            }
 
-        if (width == 0 || height == 0) {
-            view.setViewSize(displayW, displayH)
-            return
-        }
+            if (width == 0 || height == 0) {
+                view.setViewSize(displayW, displayH)
+                return
+            }
 
-        // compute the aspect ratio
-        var dw = displayW.toDouble()
-        var dh = displayH.toDouble()
-        val ar = if (sarDen == sarNum) {
-            /* No indication about the density, assuming 1:1 */
-            visibleWidth.toDouble() / visibleHeight.toDouble()
-        } else {
-            /* Use the specified aspect ratio */
-            val vw = visibleWidth * sarNum.toDouble() / sarDen
-            vw / visibleHeight
-        }
+            // compute the aspect ratio
+            var dw = displayW.toDouble()
+            var dh = displayH.toDouble()
+            val ar = if (sarDen == sarNum) {
+                /* No indication about the density, assuming 1:1 */
+                visibleWidth.toDouble() / visibleHeight.toDouble()
+            } else {
+                /* Use the specified aspect ratio */
+                val vw = visibleWidth * sarNum.toDouble() / sarDen
+                vw / visibleHeight
+            }
 
-        // compute the display aspect ratio
-        val dar = dw / dh
-        if (dar < ar)
-            dh = dw / ar
-        else
-            dw = dh * ar
+            // compute the display aspect ratio
+            val dar = dw / dh
+            if (dar < ar)
+                dh = dw / ar
+            else
+                dw = dh * ar
 
-        view.setViewSize(floor(dw).toInt(), floor(dh).toInt())
+            view.setViewSize(floor(dw).toInt(), floor(dh).toInt())
         }
     }
 



More information about the Android mailing list