diff options
| author | Taesu Lee <taesu82.lee@samsung.com> | 2020-01-30 15:02:16 +0900 |
|---|---|---|
| committer | Taesu Lee <taesu82.lee@samsung.com> | 2020-02-05 15:53:23 +0900 |
| commit | 36a41d3e9dfabcec975fdbbab0d643a9779ce107 (patch) | |
| tree | 32dd356685b66c59b9536c93afa28d3d2309a341 /src/com/android/messaging/ui/AsyncImageView.java | |
| parent | 3bd7b79daa10ccec065c4d86d805ca8e8fed806c (diff) | |
Fix showing wrong image on document picker item
Set mDetachedRequestDescriptor as null for document picker to prevent
calling setImageResourceId() in onAttachedToWindow().
Test: Manual
Change-Id: Ied5ca200cac350ef4b2420269763dfc240fc97c4
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Diffstat (limited to 'src/com/android/messaging/ui/AsyncImageView.java')
| -rw-r--r-- | src/com/android/messaging/ui/AsyncImageView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/messaging/ui/AsyncImageView.java b/src/com/android/messaging/ui/AsyncImageView.java index e37966a..7d057b3 100644 --- a/src/com/android/messaging/ui/AsyncImageView.java +++ b/src/com/android/messaging/ui/AsyncImageView.java @@ -125,6 +125,8 @@ public class AsyncImageView extends ImageView implements MediaResourceLoadListen return; } unbindView(); + } else { + mDetachedRequestDescriptor = null; } setImage(null); resetTransientViewStates(); |
