Commit 532ac2ca authored by Nohemi Fernandez's avatar Nohemi Fernandez Committed by Commit Bot

[iOS] Disable "Yes, I'm in" button during sign-in.

Currently the button is hidden during sign-in, which causes the
left-aligned buttons to become center-aligned. Instead of hiding the
button, disable it to ensure there is no user interaction and buttons
remain aligned.

Bug: 1113687
Change-Id: I71f3d766c27f83d1d9a513f042338ecf81fe6a22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2375345
Auto-Submit: Nohemi Fernandez <fernandex@chromium.org>
Commit-Queue: Jérôme Lebel <jlebel@chromium.org>
Reviewed-by: default avatarJérôme Lebel <jlebel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801548}
parent a4c59f93
...@@ -158,12 +158,12 @@ enum AuthenticationButtonType { ...@@ -158,12 +158,12 @@ enum AuthenticationButtonType {
} }
- (void)signinWillStart { - (void)signinWillStart {
self.confirmationButton.hidden = YES; self.confirmationButton.enabled = NO;
[self startAnimatingActivityIndicator]; [self startAnimatingActivityIndicator];
} }
- (void)signinDidStop { - (void)signinDidStop {
self.confirmationButton.hidden = NO; self.confirmationButton.enabled = YES;
[self stopAnimatingActivityIndicator]; [self stopAnimatingActivityIndicator];
} }
...@@ -427,7 +427,7 @@ enum AuthenticationButtonType { ...@@ -427,7 +427,7 @@ enum AuthenticationButtonType {
[self.view addSubview:self.activityIndicator]; [self.view addSubview:self.activityIndicator];
self.activityIndicator.translatesAutoresizingMaskIntoConstraints = NO; self.activityIndicator.translatesAutoresizingMaskIntoConstraints = NO;
AddSameCenterConstraints(self.confirmationButton, self.activityIndicator); AddSameCenterConstraints(self.containerView, self.activityIndicator);
} }
// Sets the text, styling, and other button properties for the skip sign-in // Sets the text, styling, and other button properties for the skip sign-in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment