Merge "Prevent IME from showing when AOD shown or windows not drawn." into pi-dev