Merge "Check IME visibility check before calling IMM.hide()" into sc-dev am: 0c1901bddd am: 8830681998

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14320207

Change-Id: I8689e77b1d5b852719dc7bb5ac10221866fb0371