Kaydet (Commit) 3e6d192b authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Miklos Vajna

android: hide keyboard on scrolling at a more correct location

When animation happens the scrollbars appear. This hides the
keyboard when the user types and the viewport is repositioned.
With this change, trigger the keyboard hiding only when we really
do scrolling (panning).

Change-Id: I17dc651a6641e807a386d5184868412dd6710a28
üst 5d7a203b
......@@ -418,6 +418,7 @@ public class JavaPanZoomController
} else {
setState(PanZoomState.PANNING);
}
LibreOfficeMainActivity.mAppContext.hideSoftKeyboard();
}
private float panDistance(MotionEvent move) {
......
......@@ -208,8 +208,6 @@ public class ScrollbarLayer extends TileLayer {
mOpacity = 1.0f;
endTransaction();
// Scrollbar is now visible, scrolling will start: hide the soft keyboard.
LibreOfficeMainActivity.mAppContext.hideSoftKeyboard();
return true;
}
......
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