| Index: ios/chrome/browser/ui/first_run/static_file_view_controller.mm
|
| diff --git a/ios/chrome/browser/ui/first_run/static_file_view_controller.mm b/ios/chrome/browser/ui/first_run/static_file_view_controller.mm
|
| index 369929a4bbb532daeb91b067f4a9bd9c693356dc..3e38bd534d6d2fa81e225cf2411d758a825e0b2e 100644
|
| --- a/ios/chrome/browser/ui/first_run/static_file_view_controller.mm
|
| +++ b/ios/chrome/browser/ui/first_run/static_file_view_controller.mm
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "base/logging.h"
|
| #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
|
| +#import "ios/chrome/browser/ui/icons/chrome_icon.h"
|
| #import "ios/chrome/browser/ui/material_components/utils.h"
|
| #include "ios/chrome/browser/ui/rtl_geometry.h"
|
| #import "ios/third_party/material_components_ios/src/components/AppBar/src/MaterialAppBar.h"
|
| @@ -30,6 +31,9 @@
|
| MDCAppBar* _appBar;
|
| }
|
|
|
| +// Called when the back button is pressed.
|
| +- (void)back;
|
| +
|
| @end
|
|
|
| @implementation StaticFileViewController
|
| @@ -73,6 +77,19 @@
|
|
|
| // Add the app bar at the end.
|
| [_appBar addSubviewsToParent];
|
| +
|
| + // Create a custom Back bar button item, as Material Navigation Bar deprecated
|
| + // the back arrow with a shaft.
|
| + self.navigationItem.leftBarButtonItem =
|
| + [ChromeIcon templateBarButtonItemWithImage:[ChromeIcon backIcon]
|
| + target:self
|
| + action:@selector(back)];
|
| +}
|
| +
|
| +#pragma mark - Actions
|
| +
|
| +- (void)back {
|
| + [self.navigationController popViewControllerAnimated:YES];
|
| }
|
|
|
| @end
|
|
|