summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2019-10-02 14:01:04 +0200
committerKiseok Chang <kiso.chang@samsung.com>2019-10-07 02:12:20 +0000
commitd4ee2c1fce9e0791c960a9933ea3e43d1a1829d4 (patch)
tree384fe636758e02e3d2cdd67f8e61edd0db096f2b
parentf66efae015d7336fba971162e71d14e102766091 (diff)
downloadsettings-d4ee2c1fce9e0791c960a9933ea3e43d1a1829d4.tar.gz
settings-d4ee2c1fce9e0791c960a9933ea3e43d1a1829d4.tar.bz2
settings-d4ee2c1fce9e0791c960a9933ea3e43d1a1829d4.zip
Remove About device submenus
1. Remove About Device -> Status -> Battery percentage list item 2. Remove About Device -> Status -> Device status list item Change-Id: I76fec10aa26e21000ab4d56b144e8a162f7dbc1c
-rw-r--r--setting-about/src/setting-about-status.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/setting-about/src/setting-about-status.c b/setting-about/src/setting-about-status.c
index 3227bfb..494f1ec 100644
--- a/setting-about/src/setting-about-status.c
+++ b/setting-about/src/setting-about-status.c
@@ -41,7 +41,6 @@ static void __get_wifi_mac_address(char *str, int size);
static void __get_storage_capacity(char *str, int size);
static void __get_battery_percent(char *str, int size);
static int __stat_get_cpuinfo(float *usr_pct, float *sys_pct);
-static void __get_device_status(char *str, int size);
setting_view view_setting_about_status = {
.create = _view_create,
@@ -318,16 +317,6 @@ static int __generate_genlist(void *data)
elm_object_item_disabled_set(ad->item_data_storage->item,
EINA_TRUE);
- /* [UI] Battery power */
- __get_battery_percent(str, sizeof(str));
- ad->item_data_battery = setting_create_Gendial_field_def(ad->status_gl,
- &(ad->itc_2text_2), NULL, ad, SWALLOW_Type_INVALID,
- NULL, NULL, 0, _("IDS_ST_BODY_BATTERY_PERCENTAGE_ABB"),
- str, NULL);
- if (ad->item_data_battery)
- elm_object_item_disabled_set(ad->item_data_battery->item,
- EINA_TRUE);
-
/* [UI] CPU usage */
ret = __stat_get_cpuinfo(&usr, &sys);
if (ret == -ENOENT) {
@@ -346,15 +335,6 @@ static int __generate_genlist(void *data)
__BACK_POINTER_SET(ad->item_data_cpu);
}
- /* [UI] Device status */
- __get_device_status(str, sizeof(str));
- item_data = setting_create_Gendial_field_def(ad->status_gl,
- &(ad->itc_2text_2), NULL, ad, SWALLOW_Type_INVALID,
- NULL, NULL, 0, _("IDS_ST_MBODY_DEVICE_STATUS"), str,
- NULL);
- if (item_data)
- elm_object_item_disabled_set(item_data->item, EINA_TRUE);
-
elm_genlist_select_mode_set(ad->status_gl, ELM_OBJECT_SELECT_MODE_NONE);
return SETTING_RETURN_SUCCESS;
@@ -650,10 +630,3 @@ out:
return ret;
}
-/*TODO: try this int is_slp_binary()*/
-static void __get_device_status(char *str, int size)
-{
- snprintf(str, size, "%s", _("IDS_ST_HEADER_UNAVAILABLE"));
-}
-
-