Commit 0b864ab0 authored by Stepan Khapugin's avatar Stepan Khapugin Committed by Commit Bot

[multiball] Teardown UI when scenes disconnect.

Call -teardownUI when the scene disconnects. There's even a few comments
in SceneController saying this should happen, but we never added a call.

Bug: none
Change-Id: If8994dd387a3216411401f4d82eeca24b05fe792
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2231063
Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
Commit-Queue: Mark Cogan <marq@chromium.org>
Auto-Submit: Stepan Khapugin <stkhapugin@chromium.org>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775127}
parent c8fb4438
......@@ -379,6 +379,10 @@ const NSTimeInterval kDisplayPromoDelay = 0.1;
}
}
}
if (self.hasInitializedUI && level == SceneActivationLevelUnattached) {
[self teardownUI];
}
}
- (void)sceneStateWillShowModalOverlay:(SceneState*)sceneState {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment