From 0c16842e0ddf9f369d83890e243af91a1255770f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 19 Apr 2017 16:30:15 +0200 Subject: [PATCH] [RN] Fix full-screen mode when a dialog is opened on Android When a dialog is opened on Android, full-screen mode is exited but we (the app) know nothing about this. Make sure we re-enter full-screen mode once a dialog is closed, if the conditions to be in such mode are still met. --- react/features/mobile/full-screen/middleware.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/react/features/mobile/full-screen/middleware.js b/react/features/mobile/full-screen/middleware.js index 6d73a99a5..e6b7e4a37 100644 --- a/react/features/mobile/full-screen/middleware.js +++ b/react/features/mobile/full-screen/middleware.js @@ -10,6 +10,7 @@ import { CONFERENCE_WILL_JOIN, SET_AUDIO_ONLY } from '../../base/conference'; +import { HIDE_DIALOG } from '../../base/dialog'; import { Platform } from '../../base/react'; import { MiddlewareRegistry } from '../../base/redux'; @@ -52,6 +53,14 @@ MiddlewareRegistry.register(store => next => action => { fullScreen = false; break; + case HIDE_DIALOG: { + const { audioOnly, conference } + = store.getState()['features/base/conference']; + + fullScreen = conference ? !audioOnly : false; + break; + } + case SET_AUDIO_ONLY: fullScreen = !action.audioOnly; break;