Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: ios/chrome/browser/ui/payments/payment_request_edit_view_controller.mm

Issue 2907103002: [Payment Request] Updates PaymentRequestEditViewController in showcase (Closed)
Patch Set: Addressed comments + fixed broken build Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/showcase/payments/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/payments/payment_request_edit_view_controller.mm
diff --git a/ios/chrome/browser/ui/payments/payment_request_edit_view_controller.mm b/ios/chrome/browser/ui/payments/payment_request_edit_view_controller.mm
index 9539bc97e6458619955669b8c18347ebaf21d677..523bdb16cbe642f7ce72b56c4ba3844043cd69f0 100644
--- a/ios/chrome/browser/ui/payments/payment_request_edit_view_controller.mm
+++ b/ios/chrome/browser/ui/payments/payment_request_edit_view_controller.mm
@@ -322,8 +322,16 @@ typedef NS_ENUM(NSInteger, ItemType) {
UIPickerView* pickerView = [[UIPickerView alloc] initWithFrame:CGRectZero];
pickerView.delegate = self;
pickerView.dataSource = self;
+ pickerView.accessibilityIdentifier =
+ [NSString stringWithFormat:@"%@_pickerView", field.label];
[self.pickerViews setObject:pickerView forKey:key];
item.inputView = pickerView;
+
+ // Set UIPickerView's default selected row.
+ [pickerView reloadAllComponents];
+ [pickerView selectRow:[options indexOfObject:field.value]
+ inComponent:0
+ animated:NO];
}
// Reload the item.
« no previous file with comments | « no previous file | ios/showcase/payments/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698