[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.
This commit is contained in:
parent
d9538845bc
commit
0c16842e0d
|
@ -10,6 +10,7 @@ import {
|
||||||
CONFERENCE_WILL_JOIN,
|
CONFERENCE_WILL_JOIN,
|
||||||
SET_AUDIO_ONLY
|
SET_AUDIO_ONLY
|
||||||
} from '../../base/conference';
|
} from '../../base/conference';
|
||||||
|
import { HIDE_DIALOG } from '../../base/dialog';
|
||||||
import { Platform } from '../../base/react';
|
import { Platform } from '../../base/react';
|
||||||
import { MiddlewareRegistry } from '../../base/redux';
|
import { MiddlewareRegistry } from '../../base/redux';
|
||||||
|
|
||||||
|
@ -52,6 +53,14 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
fullScreen = false;
|
fullScreen = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case HIDE_DIALOG: {
|
||||||
|
const { audioOnly, conference }
|
||||||
|
= store.getState()['features/base/conference'];
|
||||||
|
|
||||||
|
fullScreen = conference ? !audioOnly : false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case SET_AUDIO_ONLY:
|
case SET_AUDIO_ONLY:
|
||||||
fullScreen = !action.audioOnly;
|
fullScreen = !action.audioOnly;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue