From f0d03e4e7fd8640b6b50e163c4f555d03b874ca6 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Fri, 13 Aug 2010 12:18:01 -0700 Subject: [PATCH] Use RS API for checking isNull. Change-Id: I840c2ac3d0fe478595f2a558b52a79886097c5b5 --- src/com/android/launcher2/allapps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher2/allapps.rs b/src/com/android/launcher2/allapps.rs index 64c99dbc5a..b07e1fe8a6 100644 --- a/src/com/android/launcher2/allapps.rs +++ b/src/com/android/launcher2/allapps.rs @@ -293,7 +293,7 @@ static void drawFrontGrid(float rowOffset, float p) float x = colWidth * col + (colWidth / 2); vpConstants->Position.x = x + 0.2f; - if (gSelectedIconIndex == iconNum && !p && gSelectedIconTexture.p) { + if (gSelectedIconIndex == iconNum && !p && rsIsObject(gSelectedIconTexture)) { rsgBindProgramFragment(gPFTexNearest); rsgBindTexture(gPFTexNearest, 0, gSelectedIconTexture); vpConstants->ImgSize.x = rsAllocationGetDimX(gSelectedIconTexture);