Refactoring in CL 55138 added an extra condition to display the IME. Change-Id: I2a4cc83bb39bd2c87ad3bd75ef234cdbdfdad74f