diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-12-20 12:27:20 -0500 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-12-20 12:27:20 -0500 |
commit | 37d9b39af28985fb5c3f6b1949dfe165b500046f (patch) | |
tree | fbf45ee78134ad633ea99add51dbea29be69c093 | |
parent | a35842be4d9fcc468602eea26c0b846b02867e77 (diff) | |
download | sdl_ios-37d9b39af28985fb5c3f6b1949dfe165b500046f.tar.gz |
Added check when trying to upload an appIcon for a head unit that does not support graphics.
-rw-r--r-- | SmartDeviceLink/SDLLifecycleManager.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m index 22a40b93e..f66318fa3 100644 --- a/SmartDeviceLink/SDLLifecycleManager.m +++ b/SmartDeviceLink/SDLLifecycleManager.m @@ -14,6 +14,7 @@ #import "SDLConfiguration.h" #import "SDLConnectionManagerType.h" #import "SDLDebugTool.h" +#import "SDLDisplayCapabilities.h" #import "SDLError.h" #import "SDLFile.h" #import "SDLFileManager.h" @@ -305,7 +306,7 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready"; - (void)sdl_sendAppIcon:(nullable SDLFile *)appIcon withCompletion:(void (^)(void))completion { // If no app icon was set, just move on to ready - if (appIcon == nil) { + if (appIcon == nil || self.registerResponse.displayCapabilities.graphicSupported.boolValue == NO) { completion(); return; } |