From 30fb3f7988401909c22c9851c68d1db841976c2e Mon Sep 17 00:00:00 2001 From: shyun Date: Mon, 10 Aug 2015 14:28:33 +0900 Subject: [PATCH] [Filesystem] fix the issue about external storage label and update cache storage Change-Id: I29e401ba5fefd27417a1d1615f1fe427a3763985 signed-off-by: SungHyun Min --- src/filesystem/js/common.js | 1 + src/filesystem/js/file_system_manager.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/filesystem/js/common.js b/src/filesystem/js/common.js index ed45ada..d53cacc 100755 --- a/src/filesystem/js/common.js +++ b/src/filesystem/js/common.js @@ -260,6 +260,7 @@ var commonFS_ = (function() { } return { + clearCache: clearCache, toRealPath: toRealPath, toVirtualPath: toVirtualPath, getFileInfo: getFileInfo, diff --git a/src/filesystem/js/file_system_manager.js b/src/filesystem/js/file_system_manager.js index e5e3c8b..6f24d90 100755 --- a/src/filesystem/js/file_system_manager.js +++ b/src/filesystem/js/file_system_manager.js @@ -160,6 +160,7 @@ function nextCallbackId() { } function _StorageStateChangeListener(result) { + commonFS_.clearCache(); var storage = new FileSystemStorage(result); for (var id in callbacks) { native_.callIfPossible(callbacks[id], storage); -- 2.7.4