File tree Expand file tree Collapse file tree
AnkiDroid/src/main/java/com/ichi2/anki Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1124,6 +1124,7 @@ open class DeckPicker :
11241124 Timber .i(" DeckPicker:: SearchItem opened" )
11251125 // Hide the floating action button if it is visible
11261126 floatingActionMenu.hideFloatingActionButton()
1127+ activeSnackBar?.anchorView = null
11271128 return true
11281129 }
11291130
@@ -1132,6 +1133,7 @@ open class DeckPicker :
11321133 Timber .i(" DeckPicker:: SearchItem closed" )
11331134 // Show the floating action button if it is hidden
11341135 floatingActionMenu.showFloatingActionButton()
1136+ activeSnackBar?.anchorView = floatingActionButtonBinding.fabMain
11351137 return true
11361138 }
11371139 },
@@ -1245,6 +1247,7 @@ open class DeckPicker :
12451247 }
12461248 R .id.action_sync -> {
12471249 Timber .i(" DeckPicker:: Sync button pressed" )
1250+ toolbarSearchItem?.collapseActionView()
12481251 val actionProvider = MenuItemCompat .getActionProvider(item) as ? SyncActionProvider
12491252 if (actionProvider?.isProgressShown == true ) {
12501253 launchCatchingTask {
You can’t perform that action at this time.
0 commit comments