Commit 072e9fd3 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Introduce a new hack to workaround Tizen bugs

This one is made specifically for the Z1 running on Tizen 2.4. Without
it the text in the edje disappear without any logic and reappear if you
rotate the phone or touch the surface.
parent 978a3440
......@@ -535,15 +535,29 @@ update_player_next_prev(audio_player* mpd)
static void
update_player_title_display(audio_player* mpd, const char *title)
{
elm_object_part_text_set(mpd->layout, "title_text", title);
elm_object_part_text_set(mpd->fs_layout, "title_text", title);
// This is not the recommended way to update the text
// but "elm_object_part_text_set" doesn't work correctly
// on the Samsung Z1.
Evas_Object *edje = elm_layout_edje_get(mpd->layout);
Evas_Object *fs_edje = elm_layout_edje_get(mpd->fs_layout);
edje_object_part_text_set(edje, "title_text", title);
edje_object_part_text_set(fs_edje, "title_text", title);
}
static void
update_player_artist_display(audio_player* mpd, const char *artist)
{
elm_object_part_text_set(mpd->layout, "subtitle_text", artist);
elm_object_part_text_set(mpd->fs_layout, "subtitle_text", artist);
// This is not the recommended way to update the text
// but "elm_object_part_text_set" doesn't work correctly
// on the Samsung Z1.
Evas_Object *edje = elm_layout_edje_get(mpd->layout);
Evas_Object *fs_edje = elm_layout_edje_get(mpd->fs_layout);
edje_object_part_text_set(edje, "subtitle_text", artist);
edje_object_part_text_set(fs_edje, "subtitle_text", artist);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment