summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d/common/Utils.java
diff options
context:
space:
mode:
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d/common/Utils.java')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/Utils.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/Utils.java b/gallerycommon/src/com/android/gallery3d/common/Utils.java
index 3a68745c4..614a081c8 100644
--- a/gallerycommon/src/com/android/gallery3d/common/Utils.java
+++ b/gallerycommon/src/com/android/gallery3d/common/Utils.java
@@ -26,6 +26,7 @@ import android.text.TextUtils;
import android.util.Log;
import java.io.Closeable;
+import java.io.IOException;
import java.io.InterruptedIOException;
public class Utils {
@@ -173,8 +174,8 @@ public class Utils {
if (c == null) return;
try {
c.close();
- } catch (Throwable t) {
- Log.w(TAG, "close fail", t);
+ } catch (IOException t) {
+ Log.w(TAG, "close fail ", t);
}
}