pkg_check_modules(pkgs REQUIRED
appcore-efl
ui-gadget-1
+ capi-system-info
accounts-svc
capi-appfw-application
vconf
\r
int myaccount_common_get_account_type_count(const char* capability_filter);\r
\r
+bool is_common_profile(void);\r
+\r
#define MA_UG_NAME "setting-myaccount-efl"\r
\r
#define MA_IMAGE_EDJ_NAME "/usr/apps/setting-myaccount-efl/res/edje/setting-myaccount-efl/myaccount_edc_images.edj"\r
Name: my-account-profile_mobile
Summary: My account application
-Version: 1.9.105
+Version: 1.9.106
Release: 1
Provides: my-account = %{version}-%{release}
Group: main/devel
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(efl-extension)
+BuildRequires: pkgconfig(capi-system-info)
BuildRequires: cmake
BuildRequires: gettext-devel
BuildRequires: edje-bin
int account_count = 0;
account_count = __myaccount_account_list_populate_account_info(ad);
- account_list_itc.item_style = "type1";
+ if (is_common_profile())
+ account_list_itc.item_style = "1line";
+ else
+ account_list_itc.item_style = "type1";
account_list_itc.func.text_get = __myaccount_account_list_gl_label_get;
account_list_itc.func.content_get = __myaccount_account_list_gl_icon_get;
account_list_itc.func.state_get = NULL;
{
Evas_Object *genlist;
- addacc_list_itc.item_style = "type1";
+ if (is_common_profile())
+ addacc_list_itc.item_style = "1line";
+ else
+ addacc_list_itc.item_style = "type1";
addacc_list_itc.func.text_get = __myaccount_addaccount_gl_label_get;
addacc_list_itc.func.content_get = __myaccount_addaccount_icon_get;
addacc_list_itc.func.state_get = NULL;
*\r
*/\r
\r
-\r
+#include <system_info.h>\r
#include "myaccount_ug.h"\r
#include "myaccount_ug_common.h"\r
#include "myaccount_ug_addaccount.h"\r
return count;\r
}\r
\r
+bool is_common_profile(void)\r
+{\r
+ char *profile = NULL;\r
+\r
+ if (system_info_get_platform_string("http://tizen.org/feature/profile", &profile) < 0)\r
+ return false;\r
+\r
+ if (profile == NULL)\r
+ return false;\r
+\r
+ if (strncmp(profile, "common", strlen("common")) == 0) {\r
+ free(profile);\r
+ return true;\r
+ }\r
+\r
+ free(profile);\r
+ return false;\r
+}\r