Use RS API for checking isNull.
Change-Id: I840c2ac3d0fe478595f2a558b52a79886097c5b5
diff --git a/src/com/android/launcher2/allapps.rs b/src/com/android/launcher2/allapps.rs
index 64c99db..b07e1fe 100644
--- a/src/com/android/launcher2/allapps.rs
+++ b/src/com/android/launcher2/allapps.rs
@@ -293,7 +293,7 @@
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);