This patch resolve jira [TIZENIOT-2004] lyrics not coming on boot issue 68/244668/2 submit/tizen/20200923.062110
authorJagrat Patidar <j1.patidar@samsung.com>
Wed, 23 Sep 2020 05:59:35 +0000 (11:29 +0530)
committerAmritanshu Pandia <a.pandia1@samsung.com>
Wed, 23 Sep 2020 06:19:45 +0000 (06:19 +0000)
Change-Id: Ia0780be6adb11ac4aad4ff523ec73f48fb4c4a6b

src/core/mp-setting-ctrl.c

index 933cbf38faf9736344f483e4233224e2b8aeace2..5de1eb03093e733512d5e1d9ea112ebd6938efd8 100755 (executable)
@@ -127,6 +127,7 @@ static void _mp_setting_lyric_changed_cb(const char *key, void *user_data)
        struct appdata *ad = mp_util_get_appdata();
        MP_CHECK(ad);
        bool show_lyrics = (bool) (ad->b_show_lyric);
+
        if (preference_get_boolean(KEY_MUSIC_LYRICS, &show_lyrics)) {
                ERROR_TRACE("Fail to get %s", KEY_MUSIC_LYRICS);
        }
@@ -397,11 +398,7 @@ static Eina_Bool _mp_setting_init_idler_cb(void *data)
        struct appdata *ad = (struct appdata *) data;
        MP_CHECK_FALSE(ad);
 
-       bool show_lyric = (bool) (ad->b_show_lyric);
-       if (preference_get_boolean(KEY_MUSIC_LYRICS, &show_lyric)) {
-               WARN_TRACE("Fail to get %s", KEY_MUSIC_LYRICS);
-       }
-       ad->b_show_lyric = (int) show_lyric;
+       ad->b_show_lyric = 1;
 
        _mp_setting_init_preference_key();
        mp_setting_key_cb_init();