Pass FillResponse extra back to onSaveRequest(...).
BUG: 33197203 Test: CtsAutoFillServiceTestCases passes Change-Id: Ibb57b07c7287527acc4c92607de044e789f09dcc
This commit is contained in:
@@ -737,29 +737,7 @@ final class AutoFillManagerServiceImpl {
|
||||
private void callSaveLocked() {
|
||||
if (DEBUG) Slog.d(TAG, "callSaveLocked(): mViewStates=" + mViewStates);
|
||||
|
||||
// TODO(b/33197203): hookup extras and make sure they're tested by CTS
|
||||
final Bundle extras = null;
|
||||
// // TODO(b/33197203): make sure the extras are tested by CTS
|
||||
// final Bundle responseExtras = mCurrentResponse == null ? null
|
||||
// : mCurrentResponse.getExtras();
|
||||
// final Bundle datasetExtras = mAutoFilledDataset == null ? null
|
||||
// : mAutoFilledDataset.getExtras();
|
||||
// final Bundle extras = (responseExtras == null && datasetExtras == null)
|
||||
// ? null : new Bundle();
|
||||
// if (responseExtras != null) {
|
||||
// if (DEBUG) {
|
||||
// Slog.d(TAG, "response extras on save extras: "
|
||||
// + bundleToString(responseExtras));
|
||||
// }
|
||||
// extras.putBundle(AutoFillService.EXTRA_RESPONSE_EXTRAS, responseExtras);
|
||||
// }
|
||||
// if (datasetExtras != null) {
|
||||
// if (DEBUG) {
|
||||
// Slog.d(TAG, "dataset extras on save extras: " + bundleToString(datasetExtras));
|
||||
// }
|
||||
// extras.putBundle(AutoFillService.EXTRA_DATASET_EXTRAS, datasetExtras);
|
||||
// }
|
||||
|
||||
final Bundle extras = this.mCurrentResponse.getExtras();
|
||||
|
||||
for (Entry<AutoFillId, ViewState> entry : mViewStates.entrySet()) {
|
||||
final AutoFillValue value = entry.getValue().mAutoFillValue;
|
||||
|
||||
@@ -191,7 +191,7 @@ final class RemoteFillService implements DeathRecipient {
|
||||
ensureBound();
|
||||
} else {
|
||||
if (DEBUG) {
|
||||
Slog.d(LOG_TAG, "[user: " + mUserId + "] handleOnFillRequest()");
|
||||
Slog.d(LOG_TAG, "[user: " + mUserId + "] handlePendingRequest()");
|
||||
}
|
||||
pendingRequest.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user