From 78868b55e6a01ed868f7a0918282d678605ce392 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Fri, 11 Sep 2020 07:33:46 -0700 Subject: [PATCH] [Snackbar] Remove references to deprecated static MDCSnackbarManager methods. PiperOrigin-RevId: 331144968 --- components/Snackbar/examples/SnackbarSimpleExample.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Snackbar/examples/SnackbarSimpleExample.m b/components/Snackbar/examples/SnackbarSimpleExample.m index ff8fa63c849..e5e94d87480 100644 --- a/components/Snackbar/examples/SnackbarSimpleExample.m +++ b/components/Snackbar/examples/SnackbarSimpleExample.m @@ -151,11 +151,11 @@ - (void)showColorThemedSnackbar:(id)sender { - (void)showCustomizedSnackbar:(id)sender { UIFont *customMessageFont = [UIFont fontWithName:@"Zapfino" size:14]; NSAssert(customMessageFont, @"Unable to instantiate font"); - MDCSnackbarManager.messageFont = customMessageFont; + MDCSnackbarManager.defaultManager.messageFont = customMessageFont; UIFont *customButtonFont = [UIFont fontWithName:@"ChalkDuster" size:14]; NSAssert(customButtonFont, @"Unable to instantiate font"); - MDCSnackbarManager.buttonFont = customButtonFont; + MDCSnackbarManager.defaultManager.buttonFont = customButtonFont; MDCSnackbarMessage *message = [[MDCSnackbarMessage alloc] init]; message.text = @"Customized Fonts"; @@ -167,8 +167,8 @@ - (void)showCustomizedSnackbar:(id)sender { } - (void)showDecustomizedSnackbar:(id)sender { - MDCSnackbarManager.messageFont = nil; - MDCSnackbarManager.buttonFont = nil; + MDCSnackbarManager.defaultManager.messageFont = nil; + MDCSnackbarManager.defaultManager.buttonFont = nil; [MDCSnackbarManager.defaultManager setButtonTitleColor:nil forState:UIControlStateNormal]; [MDCSnackbarManager.defaultManager setButtonTitleColor:nil forState:UIControlStateHighlighted]; MDCSnackbarManager.defaultManager.messageTextColor = nil;