Skip to content

Commit

Permalink
Merge pull request #411 from gree/fix/visibility_adjustument_timing
Browse files Browse the repository at this point in the history
modified to call SetVisibility(false) on application resume instead of pause.
  • Loading branch information
KojiNakamaru authored Apr 10, 2019
2 parents b944ee0 + 40b5356 commit c335aaf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/WebViewObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,9 @@ void OnApplicationPause(bool paused)
{
if (webView == null)
return;
if (paused)
if (!paused)
{
webView.Call("SetVisibility", false);
}
else
{
mResumedTimestamp = Time.realtimeSinceStartup;
}
webView.Call("OnApplicationPause", paused);
Expand Down

0 comments on commit c335aaf

Please sign in to comment.