From 606e51d9c43935776fabfe686f6e9b7aca490d23 Mon Sep 17 00:00:00 2001 From: sullivan-shin Date: Mon, 25 Apr 2016 09:47:45 +0900 Subject: [PATCH] =?UTF-8?q?[#1=20@victor-park=20=20@wilson-a]=20EngineKey?= =?UTF-8?q?=20=EC=99=80=20Singature=20=EC=A0=91=EA=B7=BC=20=EC=A0=9C?= =?UTF-8?q?=ED=95=9C=EC=9E=90=20=EC=99=84=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/bumptech/glide/load/engine/EngineKey.java | 6 +++--- .../java/com/bumptech/glide/load/engine/OriginalKey.java | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/library/src/main/java/com/bumptech/glide/load/engine/EngineKey.java b/library/src/main/java/com/bumptech/glide/load/engine/EngineKey.java index 03517e8382..f911c22376 100644 --- a/library/src/main/java/com/bumptech/glide/load/engine/EngineKey.java +++ b/library/src/main/java/com/bumptech/glide/load/engine/EngineKey.java @@ -12,7 +12,7 @@ import java.security.MessageDigest; @SuppressWarnings("rawtypes") -class EngineKey implements Key { +public class EngineKey implements Key { private static final String EMPTY_LOG_STRING = ""; private final String id; private final int width; @@ -26,7 +26,7 @@ class EngineKey implements Key { private final Key signature; private String stringKey; private int hashCode; - private Key originalKey; + private OriginalKey originalKey; public EngineKey(String id, Key signature, int width, int height, ResourceDecoder cacheDecoder, ResourceDecoder decoder, Transformation transformation, ResourceEncoder encoder, @@ -43,7 +43,7 @@ public EngineKey(String id, Key signature, int width, int height, ResourceDecode this.sourceEncoder = sourceEncoder; } - public Key getOriginalKey() { + public OriginalKey getOriginalKey() { if (originalKey == null) { originalKey = new OriginalKey(id, signature); } diff --git a/library/src/main/java/com/bumptech/glide/load/engine/OriginalKey.java b/library/src/main/java/com/bumptech/glide/load/engine/OriginalKey.java index d52e7b60e1..b34a4498c2 100644 --- a/library/src/main/java/com/bumptech/glide/load/engine/OriginalKey.java +++ b/library/src/main/java/com/bumptech/glide/load/engine/OriginalKey.java @@ -8,7 +8,7 @@ /** * A class for keeping track of the cache key of the original data + any requested signature. */ -class OriginalKey implements Key { +public class OriginalKey implements Key { private final String id; private final Key signature; @@ -39,6 +39,10 @@ public boolean equals(Object o) { return true; } + public Key getSignature() { + return signature; + } + @Override public int hashCode() { int result = id.hashCode();