summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authoryongga <yongga@codeaurora.org>2016-01-09 16:10:22 +0800
committeryongga <yongga@codeaurora.org>2016-01-09 16:11:08 +0800
commit80728e69cd9c931d5f09d08d32a5fb7a5ab94b71 (patch)
tree1ed5a320c52e965433850d10dc04eaef40d4df38 /src/com
parentb6f034108ac17a4e5456df9620c0b520b99be7ec (diff)
downloadandroid_packages_apps_Gallery2-80728e69cd9c931d5f09d08d32a5fb7a5ab94b71.tar.gz
android_packages_apps_Gallery2-80728e69cd9c931d5f09d08d32a5fb7a5ab94b71.tar.bz2
android_packages_apps_Gallery2-80728e69cd9c931d5f09d08d32a5fb7a5ab94b71.zip
Gallery2: Fix screen flicker after wake up.
When the decode of full image is not ready, there will be a black Rect fill in the view. As a result, there will be a filcker. Cancel the black rect during decoder. Change-Id: Ife6984897cd21715c0e4376ee2e717fd2244a8f6 CRs-Fixed: 954007
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/ui/TiledScreenNail.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/ui/TiledScreenNail.java b/src/com/android/gallery3d/ui/TiledScreenNail.java
index 860e230bb..0ade9389c 100644
--- a/src/com/android/gallery3d/ui/TiledScreenNail.java
+++ b/src/com/android/gallery3d/ui/TiledScreenNail.java
@@ -153,7 +153,7 @@ public class TiledScreenNail implements ScreenNail {
@Override
public void draw(GLCanvas canvas, int x, int y, int width, int height) {
- if (mTexture == null || !mTexture.isReady()) {
+ if (mTexture == null) {
if (mAnimationStartTime == ANIMATION_NOT_NEEDED) {
mAnimationStartTime = ANIMATION_NEEDED;
}
@@ -177,7 +177,7 @@ public class TiledScreenNail implements ScreenNail {
@Override
public void draw(GLCanvas canvas, RectF source, RectF dest) {
- if (mTexture == null || !mTexture.isReady()) {
+ if (mTexture == null) {
canvas.fillRect(dest.left, dest.top, dest.width(), dest.height(),
mPlaceholderColor);
return;