ImagesPlugin remove stacktrace printing when checking for SVG and GIF dependencies

This commit is contained in:
Dimitry Ivanov 2019-08-26 13:06:21 +03:00
parent b3e7749c7a
commit fa01a50ae8
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,8 @@ public abstract class GifSupport {
pl.droidsonroids.gif.GifDrawable.class.getName(); pl.droidsonroids.gif.GifDrawable.class.getName();
result = true; result = true;
} catch (Throwable t) { } catch (Throwable t) {
t.printStackTrace(); // @since 4.1.1-SNAPSHOT do not print stacktrace (it can become noisy)
// t.printStackTrace();
result = false; result = false;
} }
HAS_GIF = result; HAS_GIF = result;

View File

@ -13,7 +13,8 @@ public abstract class SvgSupport {
com.caverock.androidsvg.SVG.class.getName(); com.caverock.androidsvg.SVG.class.getName();
result = true; result = true;
} catch (Throwable t) { } catch (Throwable t) {
t.printStackTrace(); // @since 4.1.1-SNAPSHOT do not print stacktrace (it can become noisy)
// t.printStackTrace();
result = false; result = false;
} }
HAS_SVG = result; HAS_SVG = result;