@spdo...@chromium.org Mine is a smaller change, so I can rebase on yours if there are conflicts.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
@spdo...@chromium.org Mine is a smaller change, so I can rebase on yours if there are conflicts.
Thanks! They should not conflict if I updated mPinnedTabsRecyclerView to pinnedTabsRecyclerView back, but I could also rebase on this one if it lands first and there is any conflict.
} else {
mPinnedTabsRecyclerView.setVisibility(View.VISIBLE);
mPinnedTabsRecyclerView.setDisableItemAnimations(false);
}just curious: do we still need this with ` mPinnedTabsRecyclerView.runOnNextLayout(() -> mPinnedTabsRecyclerView.setDisableItemAnimations(false));` above?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hao Dong@spdo...@chromium.org Mine is a smaller change, so I can rebase on yours if there are conflicts.
Thanks! They should not conflict if I updated mPinnedTabsRecyclerView to pinnedTabsRecyclerView back, but I could also rebase on this one if it lands first and there is any conflict.
SG!
Bug: 550922629, 337042619Gazal Agarwalwrong bug numbers?
Yeah pasted the second bug after the first 5 by mistake. Updated.
} else {
mPinnedTabsRecyclerView.setVisibility(View.VISIBLE);
mPinnedTabsRecyclerView.setDisableItemAnimations(false);
}just curious: do we still need this with ` mPinnedTabsRecyclerView.runOnNextLayout(() -> mPinnedTabsRecyclerView.setDisableItemAnimations(false));` above?
That's a valid point. If the RV was already visible, `updatePinnedTabsVisibility` won't be called.
I realized I can just use a`swapAdapter`, so that all old views are recycled and the flash is gone. Updated.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
mPinnedTabsRecyclerView.setVisibility(View.GONE);
mPinnedTabsRecyclerView.swapAdapter(
mPinnedTabsAdapter, /* removeAndRecycleExistingViews= */ true);super nit: guard this with `if (mPinnedTabsRecyclerView.getVisibility() != View.GONE)` to avoid redundant swapAdapter calls.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
mPinnedTabsRecyclerView.setVisibility(View.GONE);
mPinnedTabsRecyclerView.swapAdapter(
mPinnedTabsAdapter, /* removeAndRecycleExistingViews= */ true);super nit: guard this with `if (mPinnedTabsRecyclerView.getVisibility() != View.GONE)` to avoid redundant swapAdapter calls.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
4 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: chrome/android/features/tab_ui/java/src/org/chromium/chrome/browser/tasks/tab_management/vertical_tabs/VerticalTabListCoordinator.java
Insertions: 5, Deletions: 3.
The diff is too large to show. Please review the diff.
```
[Vertical Tabs] Fix pinned tab flash on visibility change
Call swapAdapter on the pinned tabs RecyclerView when it becomes empty.
This detaches old views immediately to prevent them from animating on
screen when waking up from GONE. Additionally, adds clip animations to
pinned tabs RV.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |