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

Commit 2321dc72 authored by lijilou's avatar lijilou Committed by Jilou li
Browse files

AutoFill:fix NPE to aviod systemServer crash.

Test: OEM monkey test
Bug: 346442945
Change-Id: Ibb6af7715a956b580d96833ec68461e479254443
parent 7b155a8a
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();
                }
            });
        }
    }