.parent = "WIDGET",
.apptype = TBT_APP_WIDGET,
.icon_name = "dummy",
- .info = "1. Press button View Widget UI.<br/>"
+ .info = "1. Press button Launch Widget.<br/>"
"2. A Widget UI written <b>Hello widget</b> will be shown",
.result = 0,
.required_features_count = 0
else if(type == NFC_DISCOVERED_TYPE_DETACHED)
{
DBG("NFC Discovery Detach");
- this->nfc_label = ui_utils_label_add(this->view->layout, "NFC Discovery Detach");
- elm_object_part_content_set(this->view->layout, "nfc_text", this->nfc_label);
+ ui_utils_label_set_text(this->nfc_label, "NFC Discovery Detach", "left");
+ // this->nfc_label = ui_utils_label_add(this->view->layout, "NFC Discovery Detach");
+ // elm_object_part_content_set(this->view->layout, "nfc_text", this->nfc_label);
this->nfc_list = elm_list_add(this->view->layout);
evas_object_data_set(this->nfc_list, "nfc_view", this);
elm_object_part_content_set(this->view->layout, "nfc_list", this->nfc_list);
- ui_utils_show_toast("NFC Discovery Detach", this->view->layout, 3);
+ // ui_utils_show_toast("NFC Discovery Detach", this->view->layout, 3);
}
}
}
else
{
DBG("NFC Discovery Detach");
- this->nfc_label = ui_utils_label_add(this->view->layout, "NFC Discovery Detach");
- elm_object_part_content_set(this->view->layout, "nfc_text", this->nfc_label);
+ ui_utils_label_set_text(this->nfc_label, "NFC Discovery Detach", "left");
+ // this->nfc_label = ui_utils_label_add(this->view->layout, "NFC Discovery Detach");
+ // elm_object_part_content_set(this->view->layout, "nfc_text", this->nfc_label);
this->nfc_list = elm_list_add(this->view->layout);
evas_object_data_set(this->nfc_list, "nfc_view", this);
elm_object_part_content_set(this->view->layout, "nfc_list", this->nfc_list);
- ui_utils_show_toast("NFC Discovery Detach", this->view->layout, 3);
+ // ui_utils_show_toast("NFC Discovery Detach", this->view->layout, 3);
}
static bool was_playing;
static sound_view *view;
-
+double pauseVolumeLevel;
static Eina_Bool __progressbar_timer_cb(void *data)
{
RETVM_IF(NULL == navi, NULL, "navi is null");
sound_view *this = NULL;
+ pauseVolumeLevel = 0.0;
int ret;
this = calloc(1, sizeof(sound_view));
RETVM_IF(!this, NULL, "calloc failed");
if(((get_device_type() == DEVICE_WEARABLE_216_432)||(get_device_type() == DEVICE_WEARABLE_360_360)) && this->view->tbt_info->apptype == TBT_APP_SOUND_VOLUME){
if (this->progressbar_timer)
- ecore_timer_del(this->progressbar_timer);
+ {
+ if(pauseVolumeLevel == 0.0)
+ {
+ ecore_timer_del(this->progressbar_timer);
+ double value = 0.0;
+ if(value == 1.0) value = 0.0;
+ value = value + 0.01;
+ elm_progressbar_value_set(this->volume_bar, value);
+ this->progressbar_timer = ecore_timer_add(0.1, __progressbar_timer_cb, this);
+ }
+ else
+ {
+ elm_progressbar_value_set(this->volume_bar, pauseVolumeLevel);
+ this->progressbar_timer = ecore_timer_add(0.1, __progressbar_timer_cb, this);
+ }
+ }
else
+ {
this->progressbar_timer = ecore_timer_add(0.1, __progressbar_timer_cb, this);
+ }
}
}
}
ret = player_set_display_visible(this->player, false);
RETM_IF(PLAYER_ERROR_NONE!=ret, "player_set_display_visible failed:%s", get_player_error(ret));
}
+ if(((get_device_type() == DEVICE_WEARABLE_216_432)||(get_device_type() == DEVICE_WEARABLE_360_360)) && this->view->tbt_info->apptype == TBT_APP_SOUND_VOLUME)
+ {
+ if (this->progressbar_timer)
+ {
+ pauseVolumeLevel = 0.0;
+ ecore_timer_del(this->progressbar_timer);
+ }
+ }
}
}
ret = player_pause(this->player);
RETM_IF(PLAYER_ERROR_NONE!=ret, "player_pause failed:%s", get_player_error(ret));
}
+ if(((get_device_type() == DEVICE_WEARABLE_216_432)||(get_device_type() == DEVICE_WEARABLE_360_360)) && this->view->tbt_info->apptype == TBT_APP_SOUND_VOLUME)
+ {
+ if (this->progressbar_timer)
+ {
+ pauseVolumeLevel = elm_progressbar_value_get(view->volume_bar);
+ ecore_timer_del(this->progressbar_timer);
+ }
+ }
}
}