Skip to content
Merged
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 @@ -35,8 +35,11 @@ import com.ichi2.widget.WidgetStatus
import kotlinx.coroutines.launch
import timber.log.Timber

/**
* Hosts [StudyOptionsFragment] when non-fragmented
*/
class StudyOptionsActivity :
AnkiActivity(),
AnkiActivity(R.layout.studyoptions),
ChangeManager.Subscriber {
private var undoState = UndoState()

Expand All @@ -45,7 +48,6 @@ class StudyOptionsActivity :
return
}
super.onCreate(savedInstanceState)
setContentView(R.layout.studyoptions)
enableToolbar().apply { title = "" }
if (savedInstanceState == null) {
loadStudyOptionsFragment()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ import kotlinx.coroutines.launch
import org.intellij.lang.annotations.Language
import timber.log.Timber

/**
* Displays an overview of a deck (title, counts, description) and allows studying or modification
* of the deck (Unbury, Deck Options, Custom Study)
*
* Filtered decks may be emptied or rebuilt
*
* On a tablet, this is the primary screen to study a deck and appears inside [DeckPicker]
* On a phone, this is hosted inside [StudyOptionsActivity], opened via the the [DeckPicker] counts
*/
class StudyOptionsFragment :
Fragment(),
ChangeManager.Subscriber,
Expand Down