Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix tabs scrollbar refreshing issue (#2941)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored Mar 11, 2020
1 parent 594865f commit e08227a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,10 @@ private void enterSelectMode() {
mSelecting = true;
mSelectTabsButton.setVisibility(View.GONE);
mDoneButton.setVisibility(View.VISIBLE);
mAdapter.notifyDataSetChanged();
updateSelectionMode();
mWidgetManager.pushBackHandler(mSelectModeBackHandler);

post(() -> mAdapter.notifyDataSetChanged());
}

private void exitSelectMode() {
Expand All @@ -336,9 +337,10 @@ private void exitSelectMode() {
mSelectTabsButton.setVisibility(View.VISIBLE);
mDoneButton.setVisibility(View.GONE);
mSelectedTabs.clear();
mAdapter.notifyDataSetChanged();
updateSelectionMode();
mWidgetManager.popBackHandler(mSelectModeBackHandler);

post(() -> mAdapter.notifyDataSetChanged());
}

private void updateSelectionMode() {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/tabs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:layout_marginBottom="10dp"
android:fadingEdgeLength="50dp">
</org.mozilla.vrbrowser.ui.views.CustomRecyclerView>

Expand Down

0 comments on commit e08227a

Please sign in to comment.