Skip to content

Commit df40889

Browse files
committed
chore: convert DeckPickerFloatingActionMenu to ViewBinding
Tests were removed as they were brittle Issue 11116
1 parent 8017caa commit df40889

File tree

3 files changed

+181
-232
lines changed

3 files changed

+181
-232
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,6 @@ open class DeckPicker :
554554
decksLayoutManager = LinearLayoutManager(this)
555555
deckPickerBinding.decks.layoutManager = decksLayoutManager
556556

557-
// Add background to Deckpicker activity
558-
val view = binding.deckpickerXlView ?: binding.rootLayout
559-
560557
deckListAdapter =
561558
DeckAdapter(
562559
this,
@@ -590,7 +587,7 @@ open class DeckPicker :
590587
}
591588
// Setup the FloatingActionButtons
592589
floatingActionMenu =
593-
DeckPickerFloatingActionMenu(this, view, this).apply {
590+
DeckPickerFloatingActionMenu(this, binding, this).apply {
594591
toggleListener =
595592
FloatingActionBarToggleListener { isOpening ->
596593
closeFloatingActionBarBackPressCallback.isEnabled = isOpening

0 commit comments

Comments
 (0)