[SelfCamera] updated SelfCamera sources tizen_2.2 2.2.1_release
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Wed, 23 Oct 2013 07:50:41 +0000 (09:50 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Wed, 23 Oct 2013 07:50:41 +0000 (09:50 +0200)
Change-Id: I3f2fe97ea519734a6558bc8e90bafedaffeda86e

js/app.systemIO.js
js/main.js

index f485b45..66327e2 100644 (file)
@@ -48,6 +48,7 @@ function SystemIO() {
                                } catch(e) {
                                        fileStream.close();
                                        onError(fileHandle);
+                                       return;
                                }
                                if (typeof onSuccess === 'function') {
                                        onSuccess(fileHandle);
index 6aa7a3a..85d27cb 100644 (file)
@@ -200,8 +200,13 @@ function SelfCamera() {
                                self.showFailureMessage();
                                self.systemIO.deleteNode(fileName,
                                        function() {
-                                               console.log('Deleted corrupted file.')
-                                               self.loadThumbnail(true, false);
+                                               console.log('Deleted corrupted file.');
+                                               setTimeout(
+                                                       function() {
+                                                               self.loadThumbnail(true, false);
+                                                       },
+                                                       1000
+                                               );
                                        }
                                );
                        };