Skip to content

Commit 48793e2

Browse files
committed
Debug tests
1 parent e9252cc commit 48793e2

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

compose/ui/ui-uikit/src/iosMain/objc/CMPUIKitUtils/CMPUIKitUtils/CMPEditMenuView.m

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,7 @@ - (void)didMoveToWindow {
150150
if (self.window != nil) {
151151
[[CMPEditMenuViewRegister shared] addEditMenu:self];
152152
} else {
153-
if (@available(iOS 16.0, *)) {
154-
[self cancelPresentEditMenuInteraction];
155-
} else {
156-
[self cancelShowMenuController];
157-
}
153+
[self hideEditMenu];
158154
[[CMPEditMenuViewRegister shared] removeEditMenu:self];
159155
}
160156
}
@@ -255,8 +251,8 @@ - (void)presentEditMenuInteraction API_AVAILABLE(ios(16.0)) {
255251

256252
UIEditMenuConfiguration *config = [UIEditMenuConfiguration configurationWithIdentifier:nil
257253
sourcePoint:self.targetRect.origin];
258-
259-
NSLog(@"[CMPEditMenuView] presentEditMenuInteraction called with config: %@ || window: %@", config, [self.window description] ?: @"<no window>");
254+
// hideEditMenu
255+
NSLog(@"[CMPEditMenuView] presentEditMenuInteraction called with config: %@ || view: %@", config, self);
260256
[self.editInteraction presentEditMenuWithConfiguration:config];
261257
}
262258

0 commit comments

Comments
 (0)