Merge "Pass FillResponse extra back to onSaveRequest(...)."

This commit is contained in:
Felipe Leme
2017-02-16 17:31:44 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 24 deletions

View File

@@ -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;

View File

@@ -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();
}