forked from I2P_Developers/i2p.i2p
fix the other gzip direction on android too
This commit is contained in:
@@ -15,7 +15,9 @@ import net.i2p.data.DataHelper;
|
|||||||
*/
|
*/
|
||||||
public class ReusableGZIPInputStream extends ResettableGZIPInputStream {
|
public class ReusableGZIPInputStream extends ResettableGZIPInputStream {
|
||||||
// Apache Harmony 5.0M13 Deflater doesn't work after reset()
|
// 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<ReusableGZIPInputStream> _available;
|
private static final LinkedBlockingQueue<ReusableGZIPInputStream> _available;
|
||||||
static {
|
static {
|
||||||
if (ENABLE_CACHING)
|
if (ENABLE_CACHING)
|
||||||
|
|||||||
Reference in New Issue
Block a user