SETTING_TRACE("clicking item[%s]", _(list_item->keyStr));
- if (!safeStrCmp("IDS_ST_BODY_APPLICATIONS", list_item->keyStr)) {
- __setting_storage_main_launch_manage_app_ug(ad);
- } else if (!safeStrCmp(SETTING_STORAGE_DEFAULT_STORAGE_STR, list_item->keyStr)) {
- setting_view_change(&setting_view_storage_main,
- &setting_view_storage_default_storage, ad);
- } else if (!safeStrCmp(SETTING_STORAGE_PICS_STR, list_item->keyStr)) {
- __setting_storage_main_app_launch("org.tizen.gallery");
- } else if (!safeStrCmp(SETTING_STORAGE_DOWNS_STR, list_item->keyStr)) {
- __setting_storage_main_app_launch("org.tizen.download-manager");
- } else if (!safeStrCmp(SETTING_STORAGE_AUDIO_STR, list_item->keyStr)) {
- __setting_storage_main_app_launch("org.tizen.music-player");
- } else if (!safeStrCmp(SETTING_STORAGE_MISCES_STR, list_item->keyStr)) {
- setting_view_change(&setting_view_storage_main,
- &setting_view_storage_miscellaneous_files, ad);
+ if (isEmulBin()) {
+ if (!safeStrCmp(SETTING_STORAGE_DEFAULT_STORAGE_STR, list_item->keyStr)) {
+ setting_view_change(&setting_view_storage_main,
+ &setting_view_storage_default_storage, ad);
+ } else if (!safeStrCmp(SETTING_STORAGE_MISCES_STR, list_item->keyStr)) {
+ setting_view_change(&setting_view_storage_main,
+ &setting_view_storage_miscellaneous_files, ad);
+ } else {
+ // do nothing now
+ }
} else {
- // do nothing now
+ if (!safeStrCmp("IDS_ST_BODY_APPLICATIONS", list_item->keyStr)) {
+ __setting_storage_main_launch_manage_app_ug(ad);
+ } else if (!safeStrCmp(SETTING_STORAGE_DEFAULT_STORAGE_STR, list_item->keyStr)) {
+ setting_view_change(&setting_view_storage_main,
+ &setting_view_storage_default_storage, ad);
+ } else if (!safeStrCmp(SETTING_STORAGE_PICS_STR, list_item->keyStr)) {
+ __setting_storage_main_app_launch("org.tizen.gallery");
+ } else if (!safeStrCmp(SETTING_STORAGE_DOWNS_STR, list_item->keyStr)) {
+ __setting_storage_main_app_launch("org.tizen.download-manager");
+ } else if (!safeStrCmp(SETTING_STORAGE_AUDIO_STR, list_item->keyStr)) {
+ __setting_storage_main_app_launch("org.tizen.music-player");
+ } else if (!safeStrCmp(SETTING_STORAGE_MISCES_STR, list_item->keyStr)) {
+ setting_view_change(&setting_view_storage_main,
+ &setting_view_storage_miscellaneous_files, ad);
+ } else {
+ // do nothing now
+ }
}
}
Elm_Object_Item *item = NULL;
- if (!isEmulBin()) {
+ bool is_emulator = isEmulBin();
+
+ if (!is_emulator) {
item = elm_genlist_item_append(ad->genlist, &itc_seperator, NULL, NULL,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
apps_desc, NULL);
if (ad->apps) {
ad->apps->userdata = ad;
+ if (is_emulator) {
+ elm_genlist_item_select_mode_set(ad->apps->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ }
} else {
SETTING_TRACE_ERROR("ad->apps is NULL");
return SETTING_RETURN_FAIL;
pics_videos_desc, NULL);
if (ad->pics_videos) {
ad->pics_videos->userdata = ad;
+ if (is_emulator) {
+ elm_genlist_item_select_mode_set(ad->pics_videos->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ }
} else {
SETTING_TRACE_ERROR("ad->pics_videos is NULL");
return SETTING_RETURN_FAIL;
NULL);
if (ad->downloads) {
ad->downloads->userdata = ad;
+ if (is_emulator) {
+ elm_genlist_item_select_mode_set(ad->downloads->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ }
} else {
SETTING_TRACE_ERROR("ad->downloads is NULL");
return SETTING_RETURN_FAIL;
NULL);
if (ad->audio) {
ad->audio->userdata = ad;
+
+ if (is_emulator) {
+ elm_genlist_item_select_mode_set(ad->audio->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ }
} else {
SETTING_TRACE_ERROR("ad->audio is NULL");
return SETTING_RETURN_FAIL;
return SETTING_RETURN_FAIL;
}
- if (!isEmulBin()) {
+ if (!is_emulator) {
/* Format USB storage */
setting_create_Gendial_field_def(ad->genlist, &(ad->itc_1text), NULL,
ad, SWALLOW_Type_INVALID, NULL,