Commit e2a33966 authored by Javier Ernesto Flores Robles's avatar Javier Ernesto Flores Robles Committed by Commit Bot

[iOS][MF] Return when the keyboard is not found

Bug: 918522
Change-Id: I125e8d3477fa52b980b8d38a65a5a2360da425b7
Reviewed-on: https://chromium-review.googlesource.com/c/1461677Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#630597}
parent eb2aa6ea
......@@ -411,6 +411,9 @@ CGFloat const kInputAccessoryHeight = 44.0f;
if (IsIPadIdiom()) {
// On iPad the keyboard view can change so this updates it when needed.
UIView* keyboardView = [self getKeyboardView];
if (!keyboardView) {
return;
}
if (self.inputAccessoryView.superview) {
if (keyboardView == self.inputAccessoryView.superview) {
return;
......
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