clock_input_wearable_spinner: Fix useless spinner creation. 02/229902/2 submit/tizen/20200420.213352 submit/tizen/20200421.221442 submit/tizen/20200422.215015
authorWoochanlee <wc0917.lee@samsung.com>
Mon, 6 Apr 2020 09:55:54 +0000 (18:55 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Mon, 20 Apr 2020 04:37:35 +0000 (04:37 +0000)
We don't need to create spinner for EFL_UI_CLOCK_TYPE_SECOND, EFL_UI_CLOCK_TYPE_DAY.

Change-Id: I78818199f777798ae36a22051c942d71ff49b6d0

clock_input_wearable_spinner/clock_input_wearable_spinner.c

index 8988969..a2c5ebe 100755 (executable)
@@ -1130,6 +1130,9 @@ field_create(Efl_Ui_Clock_Module_Data *module_data, Efl_Ui_Clock_Type field_type
    spinner_mod = (Input_Spinner_Module_Data *)module_data;
    if (!spinner_mod) return NULL;
 
+   if (field_type == EFL_UI_CLOCK_TYPE_SECOND || field_type == EFL_UI_CLOCK_TYPE_DAY)
+     return NULL;
+
    field_obj = _create_spinner(spinner_mod, field_type);
 
    evas_object_data_set(field_obj, "_field_type", (void *)field_type);