Ver código fonte

[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.
j8
Saúl Ibarra Corretgé 8 anos atrás
pai
commit
9b40572921
1 arquivos alterados com 5 adições e 4 exclusões
  1. 5
    4
      react/features/full-screen/middleware.js

+ 5
- 4
react/features/full-screen/middleware.js Ver arquivo

@@ -31,17 +31,18 @@ MiddlewareRegistry.register(store => next => action => {
31 31
         // Check if we just came back from the background and reenable full
32 32
         // screen mode if necessary.
33 33
         if (action.appState === 'active') {
34
-            const conference = store.getState()['features/base/conference'];
34
+            const { conference, audioOnly }
35
+                = store.getState()['features/base/conference'];
35 36
 
36
-            fullScreen = conference ? !conference.audioOnly : false;
37
+            fullScreen = conference ? !audioOnly : false;
37 38
         }
38 39
         break;
39 40
     }
40 41
 
41 42
     case CONFERENCE_WILL_JOIN: {
42
-        const conference = store.getState()['features/base/conference'];
43
+        const { audioOnly } = store.getState()['features/base/conference'];
43 44
 
44
-        fullScreen = !conference.audioOnly;
45
+        fullScreen = !audioOnly;
45 46
         break;
46 47
     }
47 48
 

Carregando…
Cancelar
Salvar