# Fixing an Android transition issue caused by an open keyboard

DevFeed: [Fixing an Android transition issue caused by an open keyboard](<https://devfeed.tech/articles/tip-stop-editing-19598.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/tip-stop-editing/>)

Author: Shai Almog

Published: 2018-02-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [LineageOS](<https://devfeed.tech/topics/lineageos.md>), [debugging](<https://devfeed.tech/topics/debugging.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [keyboard](<https://devfeed.tech/tags/keyboard.md>)

## AI overview

This tutorial explains an Android-only transition bug in which moving from a form with the virtual keyboard open to one without it can leave a black space during the transition. It attributes the issue to Android display resizing during input and recommends using the new API so code waits for the screen resize before running.

## Source excerpt

Device only bugs are the worst. You need to go through a device build and reproduce/rinse/repeat. Thankfully these bugs are rare but sometimes they just hit you smack in the face. One such problem occurred when I was debugging a transition on Android related to a login form. I would move between a Form where I had the keyboard open to one where it was closed. This created a nasty effect where the keyboard folded leaving a black space and the transition played out about that black space.