Browse Source

[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.
j8
Saúl Ibarra Corretgé 8 years ago
parent
commit
0c16842e0d
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      react/features/mobile/full-screen/middleware.js

+ 9
- 0
react/features/mobile/full-screen/middleware.js View File

@@ -10,6 +10,7 @@ import {
10 10
     CONFERENCE_WILL_JOIN,
11 11
     SET_AUDIO_ONLY
12 12
 } from '../../base/conference';
13
+import { HIDE_DIALOG } from '../../base/dialog';
13 14
 import { Platform } from '../../base/react';
14 15
 import { MiddlewareRegistry } from '../../base/redux';
15 16
 
@@ -52,6 +53,14 @@ MiddlewareRegistry.register(store => next => action => {
52 53
         fullScreen = false;
53 54
         break;
54 55
 
56
+    case HIDE_DIALOG: {
57
+        const { audioOnly, conference }
58
+            = store.getState()['features/base/conference'];
59
+
60
+        fullScreen = conference ? !audioOnly : false;
61
+        break;
62
+    }
63
+
55 64
     case SET_AUDIO_ONLY:
56 65
         fullScreen = !action.audioOnly;
57 66
         break;

Loading…
Cancel
Save