Skip to content

Commit d5bba14

Browse files
yarneomaterial-automation
authored andcommitted
[List] Use isKindOfClass to ensure there is support for all MDCShadowLayer's subclasses.
PiperOrigin-RevId: 353292179
1 parent 3f7cc9f commit d5bba14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/List/src/MDCBaseCell.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
#import "MDCBaseCell.h"
1616
#import "MDCSelfSizingLayoutAttributes.h"
1717

18+
#import "MaterialElevation.h"
1819
#import "MaterialInk.h"
1920
#import "MaterialRipple.h"
21+
#import "MaterialShadowElevations.h"
2022
#import "MaterialShadowLayer.h"
2123

2224
@interface MDCBaseCell ()
@@ -208,7 +210,7 @@ - (UIColor *)rippleColor {
208210
}
209211

210212
- (MDCShadowLayer *)shadowLayer {
211-
if ([self.layer isMemberOfClass:[MDCShadowLayer class]]) {
213+
if ([self.layer isKindOfClass:[MDCShadowLayer class]]) {
212214
return (MDCShadowLayer *)self.layer;
213215
}
214216
return nil;

0 commit comments

Comments
 (0)