Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10895

Transparent Splashscreen view sometimes remains

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • None
    • iPhone, iOS 9, Cordova 6.0.0, OSX Yosemite, XCode 7.2

    Description

      If another view appears before the splash screen view has completed its animation, the splash screen view may remain in a transparent state, even after the blocking view is removed.

      Problem traces to CDVSplashScreen.m line 450:
      if (finished) {
      [weakSelf destroyViews];

      where the finished flag doesn't get set during the fade-out animation completion callback. This may occur if another view appears while the fade-out animation is running. When this happens, there is no way to remove the invisible view that remains.

      I've removed the check to temporarily fix the problem. I've noticed that other plugins that have this type of logic don't usually include the check. The current logic doesn't seem to allow for a recovery when the finished flag is false.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            daserge Sergey Shakhnazarov
            andrewewanchyna Andrew Ewanchyna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment