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();