summaryrefslogtreecommitdiff
path: root/src/components/HMI/app/model/sdl/MediaModel.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/HMI/app/model/sdl/MediaModel.js')
-rw-r--r--src/components/HMI/app/model/sdl/MediaModel.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/components/HMI/app/model/sdl/MediaModel.js b/src/components/HMI/app/model/sdl/MediaModel.js
index fa8d8e2a8..0feceb211 100644
--- a/src/components/HMI/app/model/sdl/MediaModel.js
+++ b/src/components/HMI/app/model/sdl/MediaModel.js
@@ -333,13 +333,15 @@ SDL.SDLMediaModel = SDL.SDLAppModel.extend({
}
} else {
- //this.appInfo.set('alignment', "text-align:center");
+ this.appInfo.set('alignment', "text-align:center");
}
- if (params.graphic && params.graphic.value != '') {
- this.appInfo.set('trackIcon', params.graphic.value);
- } else {
- this.appInfo.set('trackIcon', 'images/sdl/audio_icon.jpg');
+ if (params.graphic != null) {
+ if (params.graphic.value != "") {
+ this.appInfo.set('trackIcon', params.graphic.value);
+ } else {
+ this.appInfo.set('trackIcon', 'images/sdl/audio_icon.jpg');
+ }
}
if ("softButtons" in params) {