Skip to content

Commit

Permalink
[iOS platform view] fix active_composition_order_ never cleared (flut…
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Yang authored May 6, 2020
1 parent c1068de commit cf13c7f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@
void FlutterPlatformViewsController::BringLayersIntoView(LayersMap layer_map) {
UIView* flutter_view = flutter_view_.get();
auto zIndex = 0;
// Clear the `active_composition_order_`, which will be populated down below.
active_composition_order_.clear();
for (size_t i = 0; i < composition_order_.size(); i++) {
int64_t platform_view_id = composition_order_[i];
std::vector<std::shared_ptr<FlutterPlatformViewLayer>> layers = layer_map[platform_view_id];
Expand Down

0 comments on commit cf13c7f

Please sign in to comment.