diff options
Diffstat (limited to 'tests/inputmethod/mockime/src/com/android/cts/mockime/MockIme.java')
-rw-r--r-- | tests/inputmethod/mockime/src/com/android/cts/mockime/MockIme.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/inputmethod/mockime/src/com/android/cts/mockime/MockIme.java b/tests/inputmethod/mockime/src/com/android/cts/mockime/MockIme.java index fc4c05e31a2..528da58c7b7 100644 --- a/tests/inputmethod/mockime/src/com/android/cts/mockime/MockIme.java +++ b/tests/inputmethod/mockime/src/com/android/cts/mockime/MockIme.java @@ -426,10 +426,6 @@ public final class MockIme extends InputMethodService { return e; } } - case "setEnableOnBackInvokedCallback": - boolean isEnabled = command.getExtras().getBoolean("isEnabled"); - getApplicationInfo().setEnableOnBackInvokedCallback(isEnabled); - return ImeEvent.RETURN_VALUE_UNAVAILABLE; case "getDisplayId": return getDisplay().getDisplayId(); case "verifyLayoutInflaterContext": @@ -679,6 +675,10 @@ public final class MockIme extends InputMethodService { .build()); } + if (mSettings.isOnBackCallbackEnabled()) { + getApplicationInfo().setEnableOnBackInvokedCallback(true); + } + getTracer().onCreate(() -> { super.onCreate(); mHandlerThread.start(); |