Skip to content
Commit 3f9ef97a authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Frameworks/base: Fix AdapterViewAnimator.createOrReuseLayoutParams

The original code was certainly not wrong, but not readable. currentLp
was already an instance (ViewGroup.LayoutParams == LayoutParams), so the
instanceof is the same as a null check. Simplify.

Change-Id: I5ec96ab1243aa5f3a4d74a5fb991dded37c149c3
parent 30fcd2aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment