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

Commit 07478c09 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "AutoFill:fix NPE to aviod systemServer crash." into main

parents 78276a31 2321dc72
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -682,12 +682,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();
                }
            });
        }
    }