feedv2: make surface open conditions clear
This change ensures that the surface can't be opened more than once, and only closes after opening. Also verifies that all conditions are met prior to opening. While testing this, I noticed scroll restore wasn't working. I've fixed this by waiting until the recycler view adapter has the right number of items before attempting to restore. Bug: 1115213 Change-Id: I86bae811926fa4a6c1caf1f8dce8e32e80152613 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2354656Reviewed-by:Vincent Boisselle <vincb@google.com> Commit-Queue: Dan H <harringtond@chromium.org> Cr-Commit-Position: refs/heads/master@{#798194}
Showing
This diff is collapsed.
Please register or sign in to comment