Revert "fix: brightness issue #299"

This reverts commit 0cd94da7ce.
This commit is contained in:
Saif Shaikh 2026-01-14 03:35:15 -08:00
parent 0cd94da7ce
commit 54b51391ad

View file

@ -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
}
};
}, []);