Fix next call WIC#show(ime()) failed when the app in multi-window mode

In case the app may not be able to control and failed to show IME with
calling WIC#show(ime()) in multi-windowing mode because the request
visiblity state out-ouf-sync by the IME control being taken by remote
target, in WIC#show(), use the IME source visiblity to check whether the
IME is valid to show instead of using the requested visiblity state to
fix this case.

Bug: 283342812
Test: manual with steps:
1. install "Jetpack Compose Demo" app.
2. open Messenges app as a secondary app of the multi window.
3. open "Jetpack Compose Demo" app.
4. enable split splitscreen of "Jetpack Compose Demo" app by long
   tapping icon in the recent screen. Choose Messages a a secondary app
5. Navigate "Text" -> "Text Input" -> "Basic input fields"
6. Tap "simple editing single line". Confirm the software keyboard is
   appeared.
7. Tap back button to close the software keyboard.
8. Tap "simple editing multi line".
9. Ensure the IME being shown as expected

Change-Id: I933e02c03f496d4f1f8d43e2602cbf1f87d40899
1 file changed