From 419f87d21a1877336ca3b4338389aa7ae8b9b04b Mon Sep 17 00:00:00 2001 From: Woochanlee Date: Fri, 29 May 2020 15:30:17 +0900 Subject: [PATCH] efl_ui_clock: Ignore Second, Day format to backward compatibility. The Second, Day fileds has been added, and that formats will generated. It can breaks some use case old App. (auto format use case) @tizen_fix Change-Id: Id13b8445463fa26e9d4456051d5adf3e4cd9314a --- src/lib/elementary/efl_ui_clock.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_clock.c b/src/lib/elementary/efl_ui_clock.c index 8de2935..ce70cdb 100755 --- a/src/lib/elementary/efl_ui_clock.c +++ b/src/lib/elementary/efl_ui_clock.c @@ -362,6 +362,9 @@ _parse_format(Evas_Object *obj, if (strchr(mapping[idx].fmt_char, cur)) { field = sd->field_list + idx; + //TIZEN_ONLY(20200529): This is not Tizen UX. + if (!field->visible) break; + // /* ignore the fields already have or disabled * valid formats, means already parsed & * repeated, ignore. */ @@ -946,7 +949,12 @@ _field_list_init(Evas_Object *obj) field->type = EFL_UI_CLOCK_TYPE_YEAR + idx; field->fmt[0] = '%'; field->fmt_exist = EINA_FALSE; - field->visible = EINA_TRUE; + //TIZEN_ONLY(20200529): This is not Tizen UX. We dont have fields for second, day in theme. + if (field->type == EFL_UI_CLOCK_TYPE_SECOND || field->type == EFL_UI_CLOCK_TYPE_DAY) + field->visible = EINA_FALSE; + else field->visible = EINA_TRUE; + //field->visible = EINA_TRUE; + // field->min = mapping[idx].def_min; field->max = mapping[idx].def_max; } -- 2.7.4