summaryrefslogtreecommitdiff
path: root/Example Apps
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2021-05-25 18:13:14 -0400
committerGitHub <noreply@github.com>2021-05-25 18:13:14 -0400
commitb1339eaec35a3300b8d366f25e3bbdfc2d1e837a (patch)
tree94818f21493e9268fc50a48774e8cf8856c59853 /Example Apps
parent464e3e91d3426b008b2899b7f5a1eb135f12d189 (diff)
parent1f7510c6d13e7857427d02e46e233c8767e633f2 (diff)
downloadsdl_ios-b1339eaec35a3300b8d366f25e3bbdfc2d1e837a.tar.gz
Merge pull request #1979 from smartdevicelink/bugfix/issue-1978-swift-and-objc-example-apps-sometimes-the-image-is-not-sent-on-the-first-hmi-level-of-full
Fix for Swift and Obj-C example apps - sometimes image is not sent on the first hmi level of `Full`
Diffstat (limited to 'Example Apps')
-rw-r--r--Example Apps/Example Swift/ProxyManager.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Example Apps/Example Swift/ProxyManager.swift b/Example Apps/Example Swift/ProxyManager.swift
index 52f1933d1..efd364784 100644
--- a/Example Apps/Example Swift/ProxyManager.swift
+++ b/Example Apps/Example Swift/ProxyManager.swift
@@ -288,12 +288,12 @@ private extension ProxyManager {
// Primary graphic
if imageFieldSupported(imageFieldName: .graphic) {
- screenManager.primaryGraphic = areImagesVisible ? SDLArtwork(image: UIImage(named: ExampleAppLogoName)!.withRenderingMode(.alwaysOriginal), persistent: false, as: .PNG) : nil
+ screenManager.primaryGraphic = areImagesVisible ? SDLArtwork(image: UIImage(named: ExampleAppLogoName)!.withRenderingMode(.alwaysOriginal), persistent: true, as: .PNG) : nil
}
// Secondary graphic
if imageFieldSupported(imageFieldName: .secondaryGraphic) {
- screenManager.secondaryGraphic = areImagesVisible ? SDLArtwork(image: UIImage(named: CarBWIconImageName)!, persistent: false, as: .PNG) : nil
+ screenManager.secondaryGraphic = areImagesVisible ? SDLArtwork(image: UIImage(named: CarBWIconImageName)!, persistent: true, as: .PNG) : nil
}
screenManager.endUpdates(completionHandler: { (error) in