Browse Source

[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 years ago
parent
commit
9b40572921
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      react/features/full-screen/middleware.js

+ 5
- 4
react/features/full-screen/middleware.js View File

31
         // Check if we just came back from the background and reenable full
31
         // Check if we just came back from the background and reenable full
32
         // screen mode if necessary.
32
         // screen mode if necessary.
33
         if (action.appState === 'active') {
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
         break;
39
         break;
39
     }
40
     }
40
 
41
 
41
     case CONFERENCE_WILL_JOIN: {
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
         break;
46
         break;
46
     }
47
     }
47
 
48
 

Loading…
Cancel
Save