Skip to content

Commit

Permalink
Fix race!
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Oct 6, 2018
1 parent d48984d commit 7d9750b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shell/platform/darwin/ios/platform_view_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
accessibility_bridge_.reset(
new AccessibilityBridge(static_cast<FlutterView*>(owner_controller_.get().view), this));
}
NotifyCreated();
// Do not call `NotifyCreated()` here - let FlutterViewController take care
// of that when its Viewport is sized. If `NotifyCreated()` is called here,
// it can occasionally get invoked before the viewport is sized resulting in
// a framebuffer that will not be able to completely attach.
}
}

Expand Down

0 comments on commit 7d9750b

Please sign in to comment.