Commit fb45f7fe authored by redatawfik's avatar redatawfik Committed by Commit Bot

Fix Tool Bar in “Edit Credit Card” screen

- Allow the tool bar to be shown only if
"AutofillCreditCardTableViewController" is presented.

Bug: 1003899
Change-Id: Id3661216af02eeb3f0365398b56ab59f9b977727
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1813497
Commit-Queue: Reda Tawfik <redatawfik@google.com>
Reviewed-by: default avatarJavier Ernesto Flores Robles <javierrobles@chromium.org>
Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#698427}
parent 93a282d8
......@@ -153,9 +153,13 @@ typedef NS_ENUM(NSInteger, ItemType) {
}
- (BOOL)shouldHideToolbar {
if (base::FeatureList::IsEnabled(kSettingsAddPaymentMethod)) {
// There is a bug from apple that this method might be called in this view
// controller even if it is not the top view controller.
if (self.navigationController.topViewController == self &&
base::FeatureList::IsEnabled(kSettingsAddPaymentMethod)) {
return NO;
}
return [super shouldHideToolbar];
}
......
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