From fe3b652b4fad5b2f117f27874630e637af47b6b8 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Mon, 3 Mar 2025 15:21:18 +0100 Subject: [PATCH] fix: more specified dep arr --- app/(auth)/player/_layout.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/(auth)/player/_layout.tsx b/app/(auth)/player/_layout.tsx index 0eefb300..c06c05a2 100644 --- a/app/(auth)/player/_layout.tsx +++ b/app/(auth)/player/_layout.tsx @@ -21,12 +21,10 @@ export default function Layout() { if (settings.autoRotate === true) { ScreenOrientation.unlockAsync(); } else { - ScreenOrientation.lockAsync( - ScreenOrientation.OrientationLock.PORTRAIT_UP - ); + ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP); } }; - }, [settings]); + }, [settings.defaultVideoOrientation, settings.autoRotate]); return ( <>