Change to the download fail state when the memory was full 27/106627/1 accepted/tizen/3.0/common/20161223.110604 accepted/tizen/3.0/ivi/20161223.081437 accepted/tizen/3.0/mobile/20161223.081358 accepted/tizen/3.0/wearable/20161223.081422 accepted/tizen/common/20161222.131405 accepted/tizen/ivi/20161223.095946 accepted/tizen/mobile/20161223.095902 accepted/tizen/wearable/20161223.095925 submit/tizen/20161222.090548 submit/tizen_3.0/20161222.090516
authormin7.choi <min7.choi@samsung.com>
Thu, 22 Dec 2016 08:18:17 +0000 (17:18 +0900)
committermin7.choi <min7.choi@samsung.com>
Thu, 22 Dec 2016 08:18:17 +0000 (17:18 +0900)
Change-Id: I7764e90dd0dda01f20f56d70d95b17761d305f37
Signed-off-by: min7.choi <min7.choi@samsung.com>
packaging/org.tizen.download-manager.spec
src/download-manager-viewItem.cpp

index 55293fc..19e6721 100755 (executable)
@@ -1,7 +1,7 @@
 %define _ux_define tizen2.3
 Name:  org.tizen.download-manager
 Summary:       Application for support of the content download
-Version:       0.3.16
+Version:       0.3.17
 Release:       1
 License:       Flora-1.1
 Group:         misc
index b8a5453..dea6b90 100755 (executable)
@@ -179,10 +179,13 @@ void ViewItem::updateFromItem()
        }
 
        if (isFinishedWithErr() &&
-                       m_item->getErrorCode() == ERROR::NOT_ENOUGH_MEMORY) {
+               m_item->getErrorCode() == ERROR::NOT_ENOUGH_MEMORY) {
                string msg;
                string installDir = m_item->getInstallDir();
-               if (installDir.compare(DM_DEFAULT_PHONE_INSTALL_DIR) == 0) {
+               string defalt_phone_dir = DM_DEFAULT_PHONE_INSTALL_DIR;
+               defalt_phone_dir.append("/");
+
+               if (installDir.compare(defalt_phone_dir) == 0) {
                        FILE *fp = NULL;
                        fp = fopen(DM_DEFAULT_MMC_INSTALL_DIR, "r");
                        if (fp != NULL) {