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

Commit 2ff34520 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "AutoFill:fix NPE to aviod systemServer crash." into main am: 07478c09 am: 69a92f08

parents 0fb68d4c 69a92f08
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -689,12 +689,20 @@ final class FillUi {
                Slog.v(TAG, "AutofillWindowPresenter.show(): fit=" + fitsSystemWindows
                        + ", params=" + paramsToString(p));
            }
            UiThread.getHandler().post(() -> mWindow.show(p));
            UiThread.getHandler().post(() -> {
                if (mWindow != null) {
                    mWindow.show(p);
                }
            });
        }

        @Override
        public void hide(Rect transitionEpicenter) {
            UiThread.getHandler().post(mWindow::hide);
            UiThread.getHandler().post(() -> {
                if (mWindow != null) {
                    mWindow.hide();
                }
            });
        }
    }