mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
parent
0cd94da7ce
commit
54b51391ad
1 changed files with 3 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue