summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryongga <yongga@codeaurora.org>2016-01-09 16:10:22 +0800
committerSteve Kondik <steve@cyngn.com>2016-09-26 04:54:47 -0700
commit2548ff018525ea14c0350fbd76b00463a24767ec (patch)
tree0078fa7287fa4714c5299a379d463b02ee3fcf17
parent4d26b208e1e4285ee5498a5d0b681f84cc98f4ee (diff)
downloadandroid_packages_apps_Gallery2-2548ff018525ea14c0350fbd76b00463a24767ec.tar.gz
android_packages_apps_Gallery2-2548ff018525ea14c0350fbd76b00463a24767ec.tar.bz2
android_packages_apps_Gallery2-2548ff018525ea14c0350fbd76b00463a24767ec.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
-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;