commit | 3f9ef97ad96262c5c43eb6199b5484161a3acc2c | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Sun Mar 15 16:31:41 2015 -0700 |
committer | Andreas Gampe <agampe@google.com> | Sun Mar 15 16:34:03 2015 -0700 |
tree | 8051e04b853541b84c9e4f79f411f92ddc8722c4 | |
parent | 30fcd2aa8a87ca97e1d6dbc3203c3a485a56dac9 [diff] |
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