Skip to content

Commit b8da225

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "Tests/RS: Add RS context check for RsBalls setAccel()"
2 parents 26f8ce8 + da1c93a commit b8da225

File tree

1 file changed

+1
-1
lines changed
  • tests/RenderScriptTests/Balls/src/com/example/android/rs/balls

1 file changed

+1
-1
lines changed

tests/RenderScriptTests/Balls/src/com/example/android/rs/balls/BallsView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public boolean onTouchEvent(MotionEvent ev)
105105
}
106106

107107
void setAccel(float x, float y, float z) {
108-
if (mRender == null) {
108+
if ((mRender == null) || (mRS == null)) {
109109
return;
110110
}
111111
mRender.setAccel(x, -y);

0 commit comments

Comments
 (0)