Fix issue that can't send the result path to caller 29/141329/1 submit/tizen/20170824.004322 submit/tizen/20170824.005658
authorsungwook79.park <sungwook79.park@samsung.com>
Mon, 31 Jul 2017 04:55:09 +0000 (13:55 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Mon, 31 Jul 2017 04:55:09 +0000 (13:55 +0900)
Change-Id: Ia5719426b099fe090742823e2fcfb97cbbaa36d3
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
inc/DrDefine.h
src/View/CDrMainView.cpp

index 7a794bd5f909b333122cafc35325db3988c741c0..392832b4213613db87c112e51b1249b13338dad9 100755 (executable)
@@ -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"
index eebbef2b9048774f90edb2dd5fcfd33e1ef823bd..70c179bb9de0705b5a8295af2511a441b73261b9 100755 (executable)
@@ -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<limitation> 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();