[SelfCamera] updated SelfCamera sources
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Tue, 3 Sep 2013 11:33:21 +0000 (13:33 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Tue, 3 Sep 2013 11:33:21 +0000 (13:33 +0200)
Change-Id: Iaaf0b82e874c7bbe341913fb0a1a4b3f8263cbe9

js/main.js

index a5b5e99..c2a4c21 100644 (file)
@@ -174,10 +174,10 @@ function SelfCamera() {
                var data, self = this, onSuccess = function (fileHandle) {
                        this.setLoadDirectory(this.getFileDirectoryURI(fileHandle));
                        tizen.content.scanFile(fileName, function () {
-                               self.loadThumbnail(false, false);
+                               setTimeout(function(){ self.loadThumbnail(true, true); }, 200);
                        }, function () {
                                console.error('scanFile: file not found');
-                               self.loadThumbnail(false, false);
+                               self.loadThumbnail(true, false);
                        });
                }.bind(this);
 
@@ -249,7 +249,6 @@ function SelfCamera() {
        SelfCamera.prototype.savePhoto = function savePhoto() {
                var self = this;
                this.saveCanvas(this.img, this.saveDirectory + this.filename);
-               setTimeout(function(){ self.loadThumbnail(true, true); }, 500);
        };
 
        SelfCamera.prototype.findLastPhoto = function findLastPhoto(onFind) {
@@ -412,7 +411,7 @@ function SelfCamera() {
                                $('#thumbnail').css('background-image', 'url("./images/transparent.png")');
                                if (show) {
                                        if (animate) {
-                                               $('#thumbnail').css({'opacity':0}).show().animate({'opacity':1});
+                                               $('#thumbnail').css({'opacity':0.01}).show().animate({'opacity':1.00});
                                        }
                                        else {
                                                $('#thumbnail').show();