commit | a90fb62f06861beb3af9f9b3356ef0bb0685547c | [log] [tgz] |
---|---|---|
author | Yigit Boyar <yboyar@google.com> | Tue Apr 12 12:30:43 2016 -0700 |
committer | Yigit Boyar <yboyar@google.com> | Wed Apr 13 21:04:33 2016 +0000 |
tree | 74435f9de41b7507085384d9e823771d3dbf123d | |
parent | 7e4178c40a03836aa10980e0b11c2744b038f9ac [diff] |
Don't invalidate layout on detach This CL fixes a bug in RV where it was always expecting an onLayout call after it is detached which may not be the case if the RV's parent is detached-attached. With this change, RecyclerView will only clear firstLayout flag if a layout is already requested. I've also changed SGLM to request layout on onDetach since it releases View references. Bug: 27229764 Change-Id: I8d7b2c9bc2b3e24eaa66253153ffa0c960f81bc6