From 74858bff239698d0f5f68de2bcf5448d46494341 Mon Sep 17 00:00:00 2001 From: tapframe Date: Sun, 14 Sep 2025 15:52:09 +0530 Subject: [PATCH] rotation fix --- src/screens/StreamsScreen.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/screens/StreamsScreen.tsx b/src/screens/StreamsScreen.tsx index db9c1f1b..6245fc68 100644 --- a/src/screens/StreamsScreen.tsx +++ b/src/screens/StreamsScreen.tsx @@ -938,20 +938,6 @@ export const StreamsScreen = () => { logger.warn('[StreamsScreen] MKV support detection failed:', e); } - // Add pre-navigation orientation lock to reduce glitch on phones only; tablets can rotate freely - try { - const { width: dw, height: dh } = Dimensions.get('window'); - const isTablet = Math.min(dw, dh) >= 768 || ((Platform as any).isPad === true); - if (!isTablet) { - await ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE); - } else { - await ScreenOrientation.unlockAsync(); - } - } catch (e) { - logger.warn('[StreamsScreen] Pre-navigation orientation lock failed:', e); - } - // Small delay to allow orientation to settle - await new Promise(res => setTimeout(res, Platform.OS === 'ios' ? 120 : 60)); // Show a quick full-screen black overlay to mask rotation flicker // by setting a transient state that renders a covering View (implementation already supported by dark backgrounds)