8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d77133e + 32f1aea commit fd2b8e4Copy full SHA for fd2b8e4
recipes/android/src/android/_android.pyx
@@ -183,9 +183,10 @@ rctx = autoclass('android.graphics.Rect')()
183
mActivity = python_act.mActivity
184
if mActivity:
185
decor_view = mActivity.getWindow().getDecorView()
186
- height = mActivity.getWindowManager().getDefaultDisplay().getHeight()
+ default_display = mActivity.getWindowManager().getDefaultDisplay()
187
# get keyboard height
188
def get_keyboard_height():
189
+ height = default_display.getHeight()
190
decor_view.getWindowVisibleDisplayFrame(rctx)
191
return height - rctx.bottom
192
else:
0 commit comments