Skip to content

Commit 6622d34

Browse files
committed
fix(android): load the IME rebind on demand to keep the mechanics closure flat
1 parent f12e917 commit 6622d34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/platform-android/src/text-input.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import {
3131
selectAndroidImeHelperArtifact,
3232
sendAndroidImeHelperText,
3333
} from './ime-helper.ts';
34-
import { rebindAndroidTestIme } from './ime-rebind.ts';
3534
import { getAndroidTestImeOwnership } from './ime-state.ts';
3635
import { discloseAdbInputDispatch } from './adb-failure.ts';
3736
import { focusAndroid } from './input-actions.ts';
@@ -230,6 +229,7 @@ async function admitAndroidTextChannel(
230229
* rebind went unconfirmed may hold no session, so no text may reach it.
231230
*/
232231
async function confirmAndroidTestImeRebound(device: DeviceInfo): Promise<void> {
232+
const { rebindAndroidTestIme } = await import('./ime-rebind.ts');
233233
const outcome = await rebindAndroidTestIme(device);
234234
if (outcome.kind === 'confirmed') return;
235235
throw new AppError(

0 commit comments

Comments
 (0)