From: sungwook79.park Date: Mon, 31 Jul 2017 04:55:09 +0000 (+0900) Subject: Fix issue that can't send the result path to caller X-Git-Tag: submit/tizen/20170824.004322^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41418f750b7003f0c42b71eb171b5ed5dd5f7f47;p=platform%2Fcore%2Fuifw%2Fsketch.git Fix issue that can't send the result path to caller Change-Id: Ia5719426b099fe090742823e2fcfb97cbbaa36d3 Signed-off-by: sungwook79.park --- diff --git a/inc/DrDefine.h b/inc/DrDefine.h index 7a794bd..392832b 100755 --- a/inc/DrDefine.h +++ b/inc/DrDefine.h @@ -19,7 +19,7 @@ #endif -#define PACKAGE_NAME "org.tizen.w-drawing" +#define PACKAGE_NAME "org.tizen.sketch" #define INSTALLED_PATH "/opt/usr/apps" #define ROOT_INSTALLED_PATH "/usr/apps" #define DATA_DIRECTORY_NAME "data" diff --git a/src/View/CDrMainView.cpp b/src/View/CDrMainView.cpp index eebbef2..70c179b 100755 --- a/src/View/CDrMainView.cpp +++ b/src/View/CDrMainView.cpp @@ -333,33 +333,14 @@ void CDrMainView::_onSaveBtnClicked(void *data, Evas_Object * obj, void *event_i WINFO("save"); std::string strFilePath; - if (CDrAppData::getInstance()->getLaunchMode() == DRAWING_SEND) { - char* dataPath = app_get_shared_data_path(); - WINFO("dataPath = %s", dataPath); - if (dataPath == nullptr) { - WINFO("DATA path is null"); - return; - } + strFilePath = DRAWING_SAVE_FILE_DIRECTORY; + std::string strFileName; + long long time = CDrUtil::getTimeStamp(); + CDrUtil::getTimeName(time, strFileName); + strFilePath += strFileName; + strFilePath += DRAWING_OUTPUT_FILE_FORMAT_MMS; + //WSINFO("save path %s",strFilePath.c_str()); - strFilePath = dataPath; - free(dataPath); - - std::string strFileName ; - long long time = CDrUtil::getTimeStamp(); - CDrUtil::getTimeName(time, strFileName); - strFilePath += strFileName; - strFilePath += DRAWING_OUTPUT_FILE_FORMAT_MMS; - /* issue when send png thru MMS */ - //WSINFO("save path %s",strFilePath.c_str()); - } else { - strFilePath = DRAWING_SAVE_FILE_DIRECTORY; - std::string strFileName ; - long long time = CDrUtil::getTimeStamp(); - CDrUtil::getTimeName(time, strFileName); - strFilePath += strFileName; - strFilePath += DRAWING_OUTPUT_FILE_FORMAT_MMS; - //WSINFO("save path %s",strFilePath.c_str()); - } pThis->_showSaveButton(false); if (pThis->_bPalletShowed) { pThis->_hideOption();