Loading services/autofill/java/com/android/server/autofill/Session.java +12 −0 Original line number Diff line number Diff line Loading @@ -1158,6 +1158,18 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState } catch (RemoteException e) { Slog.e(TAG, "Error requesting to hide fill UI", e); } try { final InlineSuggestionSession.ImeResponse imeResponse = mInlineSuggestionSession.waitAndGetImeResponse(); if (imeResponse == null) { Log.w(TAG, "Session input method callback is not set yet"); return; } imeResponse.getCallback().onInlineSuggestionsResponse( new InlineSuggestionsResponse(Collections.EMPTY_LIST)); } catch (RemoteException e) { Slog.e(TAG, "RemoteException hiding inline suggestions"); } } } Loading services/autofill/java/com/android/server/autofill/ui/InlineSuggestionFactory.java +10 −5 Original line number Diff line number Diff line Loading @@ -82,12 +82,17 @@ public final class InlineSuggestionFactory { if (sDebug) Slog.d(TAG, "createInlineSuggestionsResponse called"); final BiConsumer<Dataset, Integer> onClickFactory; if (response.getAuthentication() != null) { onClickFactory = (dataset, datasetIndex) -> client.authenticate(response.getRequestId(), onClickFactory = (dataset, datasetIndex) -> { client.requestHideFillUi(autofillId); client.authenticate(response.getRequestId(), datasetIndex, response.getAuthentication(), response.getClientState(), /* authenticateInline= */ true); }; } else { onClickFactory = (dataset, datasetIndex) -> onClickFactory = (dataset, datasetIndex) -> { client.requestHideFillUi(autofillId); client.fill(response.getRequestId(), datasetIndex, dataset); }; } final List<Dataset> datasetList = response.getDatasets(); Loading Loading
services/autofill/java/com/android/server/autofill/Session.java +12 −0 Original line number Diff line number Diff line Loading @@ -1158,6 +1158,18 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState } catch (RemoteException e) { Slog.e(TAG, "Error requesting to hide fill UI", e); } try { final InlineSuggestionSession.ImeResponse imeResponse = mInlineSuggestionSession.waitAndGetImeResponse(); if (imeResponse == null) { Log.w(TAG, "Session input method callback is not set yet"); return; } imeResponse.getCallback().onInlineSuggestionsResponse( new InlineSuggestionsResponse(Collections.EMPTY_LIST)); } catch (RemoteException e) { Slog.e(TAG, "RemoteException hiding inline suggestions"); } } } Loading
services/autofill/java/com/android/server/autofill/ui/InlineSuggestionFactory.java +10 −5 Original line number Diff line number Diff line Loading @@ -82,12 +82,17 @@ public final class InlineSuggestionFactory { if (sDebug) Slog.d(TAG, "createInlineSuggestionsResponse called"); final BiConsumer<Dataset, Integer> onClickFactory; if (response.getAuthentication() != null) { onClickFactory = (dataset, datasetIndex) -> client.authenticate(response.getRequestId(), onClickFactory = (dataset, datasetIndex) -> { client.requestHideFillUi(autofillId); client.authenticate(response.getRequestId(), datasetIndex, response.getAuthentication(), response.getClientState(), /* authenticateInline= */ true); }; } else { onClickFactory = (dataset, datasetIndex) -> onClickFactory = (dataset, datasetIndex) -> { client.requestHideFillUi(autofillId); client.fill(response.getRequestId(), datasetIndex, dataset); }; } final List<Dataset> datasetList = response.getDatasets(); Loading