Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Issue 2573053002: Don't hold on to the adapter position during a dismissal animation. (Closed)

Created:
4 years ago by Bernhard Bauer
Modified:
4 years ago
Reviewers:
dgn
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android NTP] Don't hold on to the adapter position during a dismissal animation. The adapter could change at any time during an animation, so we get the adapter position from the ViewHolder at the end of the animation. Also, add an upper bound check to InnerNode.getChildIndexForPosition() to complement the lower bound check, to get more direct stack traces in cases like this. BUG=673709 Committed: https://crrev.com/7d85923117fbe38350e7022f6003d37b58b013f2 Cr-Commit-Position: refs/heads/master@{#438493}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/InnerNode.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageRecyclerView.java View 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
Bernhard Bauer
Please review!
4 years ago (2016-12-14 11:25:40 UTC) #6
dgn
lgtm
4 years ago (2016-12-14 12:12:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2573053002/1
4 years ago (2016-12-14 12:53:53 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-14 12:57:48 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-14 13:00:57 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7d85923117fbe38350e7022f6003d37b58b013f2
Cr-Commit-Position: refs/heads/master@{#438493}

Powered by Google App Engine
This is Rietveld 408576698