diff options
| author | 2023-09-13 22:45:04 +0000 | |
|---|---|---|
| committer | 2023-09-13 22:45:04 +0000 | |
| commit | cd12aa497f34b00a92efafd0489d0eab9af9bd63 (patch) | |
| tree | 2704f6ca3a7e6f9408204b9e5ba5479b65ae89b1 | |
| parent | 12e78a358024312161511aec7aecb93e42659cad (diff) | |
| parent | 8e6028eff3452c171ab6fae83fda05cc4e2a9630 (diff) | |
Merge "Also catch InvalidDisplayException in SoftInputWindow#show()" into main
| -rw-r--r-- | core/java/android/inputmethodservice/SoftInputWindow.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/inputmethodservice/SoftInputWindow.java b/core/java/android/inputmethodservice/SoftInputWindow.java index e4a09a651ae1..7f6ec5821cb4 100644 --- a/core/java/android/inputmethodservice/SoftInputWindow.java +++ b/core/java/android/inputmethodservice/SoftInputWindow.java @@ -176,7 +176,8 @@ final class SoftInputWindow extends Dialog { try { super.show(); updateWindowState(WindowState.SHOWN_AT_LEAST_ONCE); - } catch (WindowManager.BadTokenException e) { + } catch (WindowManager.BadTokenException + | WindowManager.InvalidDisplayException e) { // Just ignore this exception. Since show() can be requested from other // components such as the system and there could be multiple event queues before // the request finally arrives here, the system may have already invalidated the |