Add margin in language option view of common profile 15/249815/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 17 Dec 2020 02:25:57 +0000 (11:25 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 17 Dec 2020 02:25:57 +0000 (11:25 +0900)
Change-Id: I3148f953e6e49d714c407c4a251a29c4d50b9a46
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/option.cpp

index 43ecd80..2d51b89 100644 (file)
@@ -1306,6 +1306,11 @@ static Evas_Object* create_option_language_view(Evas_Object *naviframe)
     Evas_Object *genlist = create_genlist(naviframe);
 #ifdef _COMMON
     evas_object_smart_callback_add(genlist, "realized", _gl_realized_cb, NULL);
+
+    Evas_Object *layout = elm_layout_add(naviframe);
+    elm_layout_file_set(layout, OPTION_LAYOUT_EDJ, "main_layout");
+    elm_object_content_set(layout, genlist);
+    evas_object_show(layout);
 #endif
 
     SCLOptionWindowType type = find_option_window_type(naviframe);
@@ -1355,7 +1360,14 @@ static Evas_Object* create_option_language_view(Evas_Object *naviframe)
 
     evas_object_show(genlist);
 
-    naviframe_item_push(naviframe, LANGUAGE, genlist, _pop_cb, naviframe, language_selection_finished_cb, naviframe);
+    Evas_Object *content;
+#ifdef _COMMON
+    content = layout;
+#else
+    content = genlist;
+#endif
+
+    naviframe_item_push(naviframe, LANGUAGE, content, _pop_cb, naviframe, language_selection_finished_cb, naviframe);
 
     return genlist;
 }
@@ -1738,7 +1750,6 @@ option_window_created(Evas_Object *window, SCLOptionWindowType type)
 
 #ifdef _TV
     option_elements[type].back_button = naviframe_item_push(naviframe, OPTIONS, mlayout, NULL, NULL, navi_back_cb, NULL, EINA_FALSE);
-
 #else
     Evas_Object *list = create_option_main_view(conformant, naviframe, type);
     option_elements[type].back_button = naviframe_item_push(naviframe, OPTIONS, list, NULL, NULL, navi_back_cb, NULL);