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

Commit e08227a

Browse files
authored
Fix tabs scrollbar refreshing issue (#2941)
1 parent 594865f commit e08227a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TabsWidget.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,10 @@ private void enterSelectMode() {
323323
mSelecting = true;
324324
mSelectTabsButton.setVisibility(View.GONE);
325325
mDoneButton.setVisibility(View.VISIBLE);
326-
mAdapter.notifyDataSetChanged();
327326
updateSelectionMode();
328327
mWidgetManager.pushBackHandler(mSelectModeBackHandler);
328+
329+
post(() -> mAdapter.notifyDataSetChanged());
329330
}
330331

331332
private void exitSelectMode() {
@@ -336,9 +337,10 @@ private void exitSelectMode() {
336337
mSelectTabsButton.setVisibility(View.VISIBLE);
337338
mDoneButton.setVisibility(View.GONE);
338339
mSelectedTabs.clear();
339-
mAdapter.notifyDataSetChanged();
340340
updateSelectionMode();
341341
mWidgetManager.popBackHandler(mSelectModeBackHandler);
342+
343+
post(() -> mAdapter.notifyDataSetChanged());
342344
}
343345

344346
private void updateSelectionMode() {

app/src/main/res/layout/tabs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
android:paddingStart="15dp"
118118
android:paddingEnd="15dp"
119119
android:layout_marginTop="10dp"
120-
android:layout_marginBottom="5dp"
120+
android:layout_marginBottom="10dp"
121121
android:fadingEdgeLength="50dp">
122122
</org.mozilla.vrbrowser.ui.views.CustomRecyclerView>
123123

0 commit comments

Comments
 (0)