diff options
author | roldenburg <roldenburg@google.com> | 2017-06-20 16:42:44 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-06-21 13:48:40 -0700 |
commit | 513e3a3dfa54ecaa2e12a049cd2b5e7dc7b8dc47 (patch) | |
tree | 83ddc461371decdbb299a802aa8c1dbda155a13c /java/com/android/dialer/app | |
parent | d06625785de67bf27ba9ad4ff02dfd20011edb74 (diff) |
Don't pass a null Context to RenderScript
We need to check that we have a Context before passing it to
RenderScript.create. getContext can return null if the fragment has been
removed.
I switched this to an early return approach to avoid the deep nesting and added tests.
It is safe to ignore the IfThisThenThat
PiperOrigin-RevId: 159633511
Change-Id: If2286a545c2e514c328dff22c48a99b9ed232e88
Diffstat (limited to 'java/com/android/dialer/app')
0 files changed, 0 insertions, 0 deletions