summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2013-10-15 14:43:32 -0700
committerMichael Wright <michaelwr@google.com>2013-10-16 13:06:18 -0700
commit6762a441ef9c764f3bfee4201742e80aa6621b89 (patch)
treeabbeb1531203d5b22a189e4098a58071835865f4 /packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
parent33379fb317143d6c766873364012622bef2af1e7 (diff)
downloadframeworks_base-6762a441ef9c764f3bfee4201742e80aa6621b89.zip
frameworks_base-6762a441ef9c764f3bfee4201742e80aa6621b89.tar.gz
frameworks_base-6762a441ef9c764f3bfee4201742e80aa6621b89.tar.bz2
Fix conditional for glClear call
Previously the call to glClear was executed when there was no available space (i.e. space which the Bitmap would *not* be drawn in on the background of the launcher), rather than when there was. Inverting the checks fixes this problem. Also, remove unnecessary Handler since the call to updateWallpapers is done via one-way binder interface and wrapped in a synchronize block anyways. Putting it on the Handler just put it on the main looper of the context that created WallpaperManager, which isn't necessary. Change-Id: Ic7a323303ec6e354d1ef245eec3434ff7128432d
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/ImageWallpaper.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/ImageWallpaper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
index 4b0c2cb..c7f4828 100644
--- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
+++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
@@ -471,7 +471,7 @@ public class ImageWallpaper extends WallpaperService {
checkGlError();
- if (w < 0 || h < 0) {
+ if (w > 0 || h > 0) {
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);
}