Add toast popup to finish pincode workflow 14/61814/2
authorPiotr Pruski <p.pruski@samsung.com>
Thu, 10 Mar 2016 16:04:03 +0000 (17:04 +0100)
committerRadek Kintop <r.kintop@samsung.com>
Fri, 11 Mar 2016 15:18:03 +0000 (16:18 +0100)
Change-Id: Ib3a7732d950b7b67ccff638052561a3424792439
Signed-off-by: Piotr Pruski <p.pruski@samsung.com>
src/view/system/view_pincode.c

index f22cf05..e0bb1c3 100644 (file)
@@ -17,6 +17,7 @@
 #include "view/system/view_pincode.h"
 #include <Elementary.h>
 #include <stdbool.h>
+#include <string.h>
 #include "define.h"
 #include "app_debug.h"
 #include "app_string.h"
@@ -255,12 +256,12 @@ static void _hide(void *view_data)
 static void _cancel_btn_mouse_cb(int id, void *data, Evas_Object *obj)
 {
        viewmgr_pop_view();
-       viewmgr_update_view(VIEW_BASE, UPDATE_TOAST, VIEW_TOAST_MESSAGE_PINCODE);
 }
 
 static void _pin_entry_key_cb(int id, void *data, Evas *e, Evas_Object *obj,
                Evas_Event_Key_Up *ev)
 {
+       SETTING_TRACE_BEGIN;
        pincode_view_data *priv = NULL;
 
        if (!data || !obj || !ev || id < 0 || id >= (PIN_ENTRIES_COUNT - 1))
@@ -303,7 +304,7 @@ static void _last_pin_entry_key_cb(int id, void *data, Evas *e, Evas_Object *obj
                for (i = 0; i < PIN_ENTRIES_COUNT; i++) {
                        tmp = elm_entry_entry_get(priv->pin_entries[i]);
                        if(tmp)
-                               entries_texts[i] = tmp[i];
+                               strcat(entries_texts, tmp);
                }
 /*This is just temporary ... */
                switch (priv->current_win_type) {
@@ -345,6 +346,7 @@ static void _last_pin_entry_key_cb(int id, void *data, Evas *e, Evas_Object *obj
                                priv->pin1 = priv->pin2 = 0;
                                /* Save new PIN ...*/
                                viewmgr_pop_view();
+                               viewmgr_update_view(VIEW_BASE, UPDATE_TOAST, VIEW_TOAST_MESSAGE_PINCODE);
                        } else {
                                _send_str_message(priv->widget_body_layout,
                                                                        SYS_PIN_TITLE_SET_MSG_ID,