Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #2656 Fix tabs scrollbar refreshing issue #2941

Merged
merged 1 commit into from
Mar 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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