Merge pull request #2855 from wood1986/fix/status-bar
fix: fix the system status bar and touch twice to show control after going back from fullscreen
This commit is contained in:
		@@ -1796,22 +1796,22 @@ class ReactExoplayerView extends FrameLayout implements
 | 
				
			|||||||
                        | SYSTEM_UI_FLAG_FULLSCREEN;
 | 
					                        | SYSTEM_UI_FLAG_FULLSCREEN;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            eventEmitter.fullscreenWillPresent();
 | 
					            eventEmitter.fullscreenWillPresent();
 | 
				
			||||||
 | 
					            if (controls) {
 | 
				
			||||||
 | 
					                fullScreenPlayerView.show();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            post(() -> {
 | 
					            post(() -> {
 | 
				
			||||||
                decorView.setSystemUiVisibility(uiOptions);
 | 
					                decorView.setSystemUiVisibility(uiOptions);
 | 
				
			||||||
                if (controls) {
 | 
					 | 
				
			||||||
                    fullScreenPlayerView.show();
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                eventEmitter.fullscreenDidPresent();
 | 
					                eventEmitter.fullscreenDidPresent();
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            uiOptions = View.SYSTEM_UI_FLAG_VISIBLE;
 | 
					            uiOptions = View.SYSTEM_UI_FLAG_VISIBLE;
 | 
				
			||||||
            eventEmitter.fullscreenWillDismiss();
 | 
					            eventEmitter.fullscreenWillDismiss();
 | 
				
			||||||
 | 
					            if (controls) {
 | 
				
			||||||
 | 
					                fullScreenPlayerView.dismiss();
 | 
				
			||||||
 | 
					                reLayout(exoPlayerView);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            post(() -> {
 | 
					            post(() -> {
 | 
				
			||||||
                decorView.setSystemUiVisibility(uiOptions);
 | 
					                decorView.setSystemUiVisibility(uiOptions);
 | 
				
			||||||
                if (controls) {
 | 
					 | 
				
			||||||
                    fullScreenPlayerView.dismiss();
 | 
					 | 
				
			||||||
                    reLayout(exoPlayerView);
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                eventEmitter.fullscreenDidDismiss();
 | 
					                eventEmitter.fullscreenDidDismiss();
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user