diff --git a/core/java/src/net/i2p/util/ReusableGZIPInputStream.java b/core/java/src/net/i2p/util/ReusableGZIPInputStream.java index 4db3b4c20..beb7d3484 100644 --- a/core/java/src/net/i2p/util/ReusableGZIPInputStream.java +++ b/core/java/src/net/i2p/util/ReusableGZIPInputStream.java @@ -15,7 +15,9 @@ import net.i2p.data.DataHelper; */ public class ReusableGZIPInputStream extends ResettableGZIPInputStream { // Apache Harmony 5.0M13 Deflater doesn't work after reset() - private static final boolean ENABLE_CACHING = !System.getProperty("java.vendor").startsWith("Apache"); + // Neither does Android + private static final boolean ENABLE_CACHING = !(System.getProperty("java.vendor").startsWith("Apache") || + System.getProperty("java.vendor").contains("Android")); private static final LinkedBlockingQueue _available; static { if (ENABLE_CACHING)