diff options
author | likaid <likaid@codeaurora.org> | 2015-09-02 17:15:22 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-03 15:44:39 -0700 |
commit | a93b1854cfb3b7500e57fe5432f57903623bf696 (patch) | |
tree | 89902e52cdb769c3daaa2e72e832fc9c4af2862f /src/com/android | |
parent | 20a0405136a2d3fffe555ce4d07430170f08e301 (diff) | |
download | android_packages_apps_Snap-a93b1854cfb3b7500e57fe5432f57903623bf696.tar.gz android_packages_apps_Snap-a93b1854cfb3b7500e57fe5432f57903623bf696.tar.bz2 android_packages_apps_Snap-a93b1854cfb3b7500e57fe5432f57903623bf696.zip |
SnapdragonCamera: Fix the preview thumbnail issue
When set the preview thumbnail imageView to visible, it used the
drawable resource in cache which was set since last time. That
caused we still could see the preview thumbnail though the bitmap
was invalid.
Clear the drawable resource in cache when the preview thumbnail
is invalid.
Change-Id: Id37620d32b8dff8dd3cad0f33da678b8709e6ee1
CRs-Fixed: 899905
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/camera/CameraActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java index fbdb38f5b..0064a0e25 100644 --- a/src/com/android/camera/CameraActivity.java +++ b/src/com/android/camera/CameraActivity.java @@ -813,6 +813,8 @@ public class CameraActivity extends Activity protected void onPostExecute(Bitmap bitmap) { if (bitmap == null) { if (mThumbnail != null) { + // Clear the image resource when the bitmap is invalid. + mThumbnail.setImageDrawable(null); mThumbnail.setVisibility(View.GONE); } } else { |