Improve ImageUtilsAndroid and ImageUtils check() system
[fanfix.git] / src / be / nikiroo / utils / ui / ImageUtilsAwt.java
index 367e757a81ede843a9273f68cafbe6f816374297..981ec247f87b0579d852a143632074bddf9b036c 100644 (file)
@@ -20,9 +20,8 @@ import be.nikiroo.utils.ImageUtils;
 public class ImageUtilsAwt extends ImageUtils {
        @Override
        protected boolean check() {
-               // If we can get the class, it means we have access to it
-               @SuppressWarnings("unused")
-               Object test = ImageIO.class;
+               // Will not work if ImageIO is not available
+               ImageIO.getCacheDirectory();
                return true;
        }