Skip to content

Commit

Permalink
hide fragment when collection is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjaySargam authored and david-allison committed Jul 8, 2024
1 parent e6eaa5c commit 50832f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,8 @@ open class DeckPicker :
hideProgressBar()
// Make sure the fragment is visible
if (fragmented) {
studyoptionsFrame!!.visibility = View.VISIBLE
invalidateOptionsMenu()
studyoptionsFrame!!.visibility = if (collectionIsEmpty) View.GONE else View.VISIBLE
}
dueTree = result
launchCatchingTask { renderPage(collectionIsEmpty) }
Expand Down

0 comments on commit 50832f9

Please sign in to comment.