elm_progressbar: set elm.text.status to NULL (UX) 45/210145/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 16 Jul 2019 05:27:50 +0000 (14:27 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 16 Jul 2019 06:32:39 +0000 (06:32 +0000)
We have following tizen only commit.

   - bfe7365 progressbar: remove wrong unit format for Tizen UX.

And upstream has following recently added commits

   - 8ab2a74 Efl.Ui.Progressbar: Add explicit display control of progress label

As a result, Tizen progressbar shows elm.text.status by default.
But Tizen UX does not show elm.text.status by default.

@tizen_only

Change-Id: I7eb09b5b4e61d053d5b75a8354306843fdb1af33

src/lib/elementary/efl_ui_progressbar.c

index eea012b..65441c6 100644 (file)
@@ -74,7 +74,10 @@ _units_set(Evas_Object *obj)
 {
    EFL_UI_PROGRESSBAR_DATA_GET(obj, sd);
 
-   if (sd->show_progress_label)
+   //TIZEN_ONLY(20190716): default of unit format is NULL in Tizen UX.
+   Efl_Ui_Format_Func format_func = efl_ui_format_func_get(obj);
+   if (sd->show_progress_label && format_func)
+   //
      {
         Eina_Value val;