From 9b40572921f0707a2d1aac2ffc6bc0840b1eb212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 20 Feb 2017 13:49:30 +0100 Subject: [PATCH] [RN] Fix Android immersive mode when coming from the background Fixes an issue where immersive mode would be enabled when coming back from the background on the welcome screen. Re-fixes c57e713, which was not correct. --- react/features/full-screen/middleware.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/react/features/full-screen/middleware.js b/react/features/full-screen/middleware.js index a76e55a8e..c61aa41da 100644 --- a/react/features/full-screen/middleware.js +++ b/react/features/full-screen/middleware.js @@ -31,17 +31,18 @@ MiddlewareRegistry.register(store => next => action => { // Check if we just came back from the background and reenable full // screen mode if necessary. if (action.appState === 'active') { - const conference = store.getState()['features/base/conference']; + const { conference, audioOnly } + = store.getState()['features/base/conference']; - fullScreen = conference ? !conference.audioOnly : false; + fullScreen = conference ? !audioOnly : false; } break; } case CONFERENCE_WILL_JOIN: { - const conference = store.getState()['features/base/conference']; + const { audioOnly } = store.getState()['features/base/conference']; - fullScreen = !conference.audioOnly; + fullScreen = !audioOnly; break; }