Skip to content

Commit

Permalink
Fix explorer not showing up when not specifying a scene
Browse files Browse the repository at this point in the history
  • Loading branch information
revolter authored and NSExceptional committed Aug 20, 2019
1 parent 6cbfa63 commit b9c9af5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Manager/FLEXManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ - (void)showExplorer
self.explorerWindow.hidden = NO;
#if FLEX_AT_LEAST_IOS13_SDK
if (@available(iOS 13.0, *)) {
// Only look for a new scene if the one we have isn't the active scene
if (self.explorerWindow.windowScene.activationState != UISceneActivationStateForegroundActive) {
// Only look for a new scene if we don't have one, or the one we have
// isn't the active scene
if (!self.explorerWindow.windowScene ||
self.explorerWindow.windowScene.activationState != UISceneActivationStateForegroundActive) {
for (UIScene *scene in UIApplication.sharedApplication.connectedScenes) {
// Look for an active UIWindowScene
if (scene.activationState == UISceneActivationStateForegroundActive &&
Expand Down

0 comments on commit b9c9af5

Please sign in to comment.