summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-05-29 16:15:41 -0700
committerJohn Reck <jreck@google.com>2014-05-29 17:40:09 -0700
commit2dedafb48f85e34a2f48262f12908866fc9de132 (patch)
tree2bfbba60236b884b2d9fb271b2cda528c9694e62 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentaee470c0232afdac4256d13020fa0cf04f30395c (diff)
Fix NPE in onVisibilityChanged
Bug: 15089790 onVisibilityChanged may happen before the View is attached. Only attempt to re-set the update listener if mLayer is not null, as it means the View is attached and has already drawn once. If mLayer is null then the update listener will be set when the view next draws Change-Id: I406e359a0a0720988f026f9cbde26afdb564ca92
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions