Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 513e3a3d authored by roldenburg's avatar roldenburg Committed by Eric Erfanian
Browse files

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
parent d0662578
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment