Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd12aa49 authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android (Google) Code Review
Browse files

Merge "Also catch InvalidDisplayException in SoftInputWindow#show()" into main

parents 12e78a35 8e6028ef
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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