Skip to content

Commit

Permalink
fullScreen() now switches to NORMAL if supported and stage is set
Browse files Browse the repository at this point in the history
  • Loading branch information
neilrackett committed Feb 21, 2016
1 parent 5b9c824 commit 4a241de
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
Binary file modified build/AndroidFullScreen.ane
Binary file not shown.
Binary file modified build/android/fullscreen-ane-jar.jar
Binary file not shown.
Binary file modified build/android/library.swf
Binary file not shown.
Binary file modified build/default/library.swf
Binary file not shown.
Binary file modified swc/bin/fullscreen-ane-swc.swc
Binary file not shown.
11 changes: 9 additions & 2 deletions swc/src/com/mesmotronic/ane/AndroidFullScreen.as
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@ package com.mesmotronic.ane
{
try
{
if (!immersiveMode())
if (immersiveMode())
{
if (stage)
{
stage.displayState = StageDisplayState.NORMAL;
}
}
else
{
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
Expand Down Expand Up @@ -193,7 +201,6 @@ package com.mesmotronic.ane
catch (e:Error)
{
throwStageError();
return false;
}
}
Expand Down

0 comments on commit 4a241de

Please sign in to comment.