GridLayoutManager: fix child states incorrectly saved
We already handles child state in LM.onSaveInstanceState(). But
ViewGroup dispatchSaveInstanceState() and dispatchRestoreInstanceState()
directly invoke child view's dispatch methods without going
through onSaveInstanceState(), so it saves states that we don't need
and later being used unexpectedly in dispatchRestoreInstanceState().
Disable the dispatchXXX() of child by toggling the flag
when a child view is created.
Bug 20016293
Change-Id: I599515ac8a0bfe29b7abef190509ef464fd2ccb6
2 files changed