Copy requestedImeVisible state also if stylus is used

By not copying the previous requested IME state when using stylus, InputMethodService#showSoftInput won't be called. In some cases, the IME was therefore stuck.

Fix: 384608941
Test: StylusHandwritingTest#testOnViewClicked_withStylusTap
Flag: android.view.inputmethod.refactor_insets_controller
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:35e062760ff8731630e55c2e234b78b5a2db1c5c)
Merged-In: Ie808e18a28b34c4c41eedc84a63c1e801ac1d4cc
Change-Id: Ie808e18a28b34c4c41eedc84a63c1e801ac1d4cc
1 file changed