Skip to content

Commit

Permalink
Fix SDLOnLockScreenStatus hmiLevel checking wrong class type
Browse files Browse the repository at this point in the history
Fixes #83
  • Loading branch information
Joel Fischer committed Mar 25, 2015
1 parent e9af8e6 commit 54660e0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -51,7 +51,7 @@ - (void)setHmiLevel:(SDLHMILevel *)hmiLevel {

- (SDLHMILevel *)hmiLevel {
NSObject* obj = [parameters objectForKey:@"hmilevel"];
if ([obj isKindOfClass:SDLLockScreenStatus.class]) {
if ([obj isKindOfClass:SDLHMILevel.class]) {
return (SDLHMILevel *)obj;
} else {
return [SDLHMILevel valueOf:(NSString*)obj];
Expand Down

0 comments on commit 54660e0

Please sign in to comment.