Merge "Request the IME to hide current inline suggestion" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
232ffbfe8f
@@ -58,6 +58,7 @@ import com.android.internal.os.IResultReceiver;
|
|||||||
import com.android.server.autofill.ui.InlineSuggestionFactory;
|
import com.android.server.autofill.ui.InlineSuggestionFactory;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.CancellationException;
|
import java.util.concurrent.CancellationException;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
@@ -263,6 +264,8 @@ final class RemoteAugmentedAutofillService
|
|||||||
&& fieldIds.get(0).equals(focusedId);
|
&& fieldIds.get(0).equals(focusedId);
|
||||||
client.autofill(sessionId, fieldIds, dataset.getFieldValues(),
|
client.autofill(sessionId, fieldIds, dataset.getFieldValues(),
|
||||||
hideHighlight);
|
hideHighlight);
|
||||||
|
inlineSuggestionsCallback.apply(new InlineSuggestionsResponse(
|
||||||
|
Collections.EMPTY_LIST));
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Slog.w(TAG, "Encounter exception autofilling the values");
|
Slog.w(TAG, "Encounter exception autofilling the values");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1228,6 +1228,8 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
|
|||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Slog.e(TAG, "Error requesting to hide fill UI", e);
|
Slog.e(TAG, "Error requesting to hide fill UI", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mInlineSessionController.hideInlineSuggestionsUiLocked(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user