File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
AnkiDroid/src/main/java/com/ichi2/anki/previewer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class PreviewerViewModel(
5050) : CardViewerViewModel(),
5151 ChangeManager .Subscriber {
5252 val currentIndex = MutableStateFlow <Int >(savedStateHandle.require(PreviewerFragment .CURRENT_INDEX_ARG ))
53- val backSideOnly = MutableStateFlow ( false )
53+ val backSideOnly = savedStateHandle.getMutableStateFlow( KEY_BACKSIDE_ONLY , false )
5454 val isMarked = MutableStateFlow (false )
5555 val flag: MutableStateFlow <Flag > = MutableStateFlow (Flag .NONE )
5656
@@ -275,6 +275,7 @@ class PreviewerViewModel(
275275 }
276276
277277 companion object {
278+ private const val KEY_BACKSIDE_ONLY = " backsideOnly"
278279 private const val SHOWING_ANSWER_KEY = " showingAnswer"
279280 }
280281}
You can’t perform that action at this time.
0 commit comments