From 550bb1aaae6b18eb83445aa9ba8dbec70fa0577c Mon Sep 17 00:00:00 2001 From: zzz Date: Sat, 11 Jun 2011 17:05:24 +0000 Subject: [PATCH] fix the other gzip direction on android too --- core/java/src/net/i2p/util/ReusableGZIPInputStream.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)