Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fun createDeckWithUniqueName(): String {
val testString = System.currentTimeMillis().toString()
val deckName = "TestDeck$testString"
onView(withId(R.id.fab_main)).perform(click())
onView(withId(R.id.add_deck_action)).perform(click())
onView(withId(R.id.add_deck_button)).perform(click())
onView(withId(R.id.dialog_text_input)).perform(typeText(deckName))
onView(withText(R.string.dialog_ok)).perform(click())
return deckName
Expand Down
5 changes: 1 addition & 4 deletions AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,6 @@ open class DeckPicker :
decksLayoutManager = LinearLayoutManager(this)
deckPickerBinding.decks.layoutManager = decksLayoutManager

// Add background to Deckpicker activity
val view = binding.deckpickerXlView ?: binding.rootLayout

deckListAdapter =
DeckAdapter(
this,
Expand Down Expand Up @@ -590,7 +587,7 @@ open class DeckPicker :
}
// Setup the FloatingActionButtons
floatingActionMenu =
DeckPickerFloatingActionMenu(this, view, this).apply {
DeckPickerFloatingActionMenu(this, binding, this).apply {
toggleListener =
FloatingActionBarToggleListener { isOpening ->
closeFloatingActionBarBackPressCallback.isEnabled = isOpening
Expand Down
Loading