smartdevicelink / sdl_ios

Get your app connected to the 🚙, make your users feel like a 🌟
www.smartdevicelink.com
BSD 3-Clause "New" or "Revised" License
169 stars 105 forks source link

Soft Buttons sent via RPC disappear #1000

Closed joeljfischer closed 6 years ago

joeljfischer commented 6 years ago

Bug Report

On v5.2.0+, when sending a soft button via the Show RPC, they flicker, and appear then disappear.

Nicole was chatting with me on Monday and she thought that the screenManager might be doing something things that were causing my screen display issues. Just to be clear, I updated from 5.11 to 5.20 and did not make a single change (still using RPCs), but my buttons were appearing and then disappearing instantly. Using screen manager to handle button display fixed the disappearing issue, but looks like it requires me to transition several other things so RPCs and screenMgr dont collide.

Reproduction Steps
on hmiLevel didChangeToLevel:
if newLevel == .Full && manager is ready;
Upload a set of base images for icons if needed

Iterate on the 4 items (our 4 command types, like TodaysForecast or WeatherAlerts).
Make SDLAddCommands for the VR strings.
Make buttons for each command.
Send addcommand via manager
End repeat.
Add buttons via SDLShow via manager
Add help phrases to unit via SDLSetGlobalProperties

then
dispatch after 1 second: SDLSetDisplayLayout with SDLPredefinedLayoutTextAndSoftButtonsWithGraphic
Expected Behavior

Soft buttons remain on the screen

Observed Behavior

Soft buttons disappear

OS & Version Information
JamaicanRumCream commented 6 years ago

With 5.2.0, see video at: https://www.dropbox.com/s/jgh8bp0buemwfjh/AccuWeather-SDL-5.2.0.MP4?dl=0