commit | e3b89d11cf08a0e9aaa8162757246f286c6df2f8 | [log] [tgz] |
---|---|---|
author | Yigit Boyar <yboyar@google.com> | Tue Mar 29 12:11:02 2016 -0700 |
committer | Yigit Boyar <yboyar@google.com> | Mon Apr 04 23:45:45 2016 +0000 |
tree | bf93f8d68dc0b4b665b84c41699088c2445e8ce0 | |
parent | cb461c15a1f928b54db6e3972cfabbf559e8b22d [diff] |
Preserve focus after layout LayoutManagers try to keep focused view visible during a layout calculation. This does not work well if the View is being replaced with another view due to type change and/or animation. It is beyond LayoutManager's intended control to care for this case so RecyclerView will track it and recover focus to the new View if necessary. Bug: 25510761 Change-Id: I65680577587839ecfe84a931998da8b9926b5566