Implemented opening DetailsView after creating new contact. 93/62693/1
authorEugene Kurzberg <i.kurtsberg@samsung.com>
Thu, 17 Mar 2016 11:27:53 +0000 (13:27 +0200)
committerEugene Kurzberg <i.kurtsberg@samsung.com>
Thu, 17 Mar 2016 11:27:53 +0000 (13:27 +0200)
Change-Id: I15fb486b3fd56355077adf3469e23b73a0b6f573
Signed-off-by: Eugene Kurzberg <i.kurtsberg@samsung.com>
lib-contact/src/Contacts/Input/InputView.cpp

index 81387c7..e0c37b2 100644 (file)
@@ -21,6 +21,7 @@
 #include "Contacts/Input/ContactImageFieldItem.h"
 #include "Contacts/Input/ContactRelationshipFieldItem.h"
 #include "Contacts/Input/ContactTypedFieldItem.h"
+#include "Contacts/Details/DetailsView.h"
 
 #include "Contacts/Model/ContactArray.h"
 #include "Contacts/Model/ContactTextField.h"
@@ -28,6 +29,7 @@
 
 #include "App/Path.h"
 #include "Ui/Genlist.h"
+#include "Ui/Navigator.h"
 #include "Ui/Popup.h"
 #include "Utils/Callback.h"
 #include "Utils/Logger.h"
@@ -296,6 +298,12 @@ void InputView::onDonePressed(Evas_Object *button, void *eventInfo)
                m_OnResult(id);
        }
 
+       if (m_Contact.isNew()) {
+               using Details::DetailsView;
+               DetailsView *view = new DetailsView(id, DetailsView::Type(m_Contact.getSubType()));
+               getNavigator()->navigateTo(view);
+       }
+
        getPage()->close();
 }