CTS: Fix Instant version of getInputMethodWindowVisibleHeight_returnsZeroIfNotFocused

Fixes an issue where the MockTestActivity was not launched in instant
mode.

Fixes: 223251008
Test: atest CtsInputMethodTestCases32
Test: atest --instant CtsInputMethodTestCases32
Change-Id: Ib71f37ce98b901e894d61cdc95cbdcf18c855395
diff --git a/tests/inputmethod/tests32/src/android/view/inputmethod/cts/sdk32/InputMethodManagerTest.kt b/tests/inputmethod/tests32/src/android/view/inputmethod/cts/sdk32/InputMethodManagerTest.kt
index 6d1907c..19bd315 100644
--- a/tests/inputmethod/tests32/src/android/view/inputmethod/cts/sdk32/InputMethodManagerTest.kt
+++ b/tests/inputmethod/tests32/src/android/view/inputmethod/cts/sdk32/InputMethodManagerTest.kt
@@ -43,7 +43,8 @@
     fun getInputMethodWindowVisibleHeight_returnsZeroIfNotFocused() {
         val imm = context.getSystemService(InputMethodManager::class.java)!!
         MockImeSession.create(context, uiAutomation, ImeSettings.Builder()).use { session ->
-            MockTestActivityUtil.launchSync(false /* instant */, TIMEOUT).use {
+            MockTestActivityUtil.launchSync(
+                    context.getPackageManager().isInstantApp(), TIMEOUT).use {
                 session.callRequestShowSelf(0)
                 expectImeVisible(TIMEOUT)
                 assertEquals(