diff --git a/src/components/player/android/hooks/usePlayerSetup.ts b/src/components/player/android/hooks/usePlayerSetup.ts index f3f448dd..a9a396e9 100644 --- a/src/components/player/android/hooks/usePlayerSetup.ts +++ b/src/components/player/android/hooks/usePlayerSetup.ts @@ -112,14 +112,10 @@ export const usePlayerSetup = ( subscription?.remove(); disableImmersiveMode(); - async function restoreBrightness() { - logger.log('yobrrrrrrrrrrrrrr'); - await Brightness.setBrightnessAsync(originalSystemBrightnessRef.current!).then(); - setBrightness(originalSystemBrightnessRef.current!); - } // Restore brightness on unmount - if (Platform.OS === 'android' && originalSystemBrightnessRef.current !== null) - restoreBrightness(); + if (Platform.OS === 'android' && originalSystemBrightnessRef.current !== null) { + // restoration logic normally happens here or in a separate effect + } }; }, []);