This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
common/shared/org/mozilla/vrbrowser/ui/widgets Expand file tree Collapse file tree Original file line number Diff line number Diff 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 () {
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments