Skip to content

Commit df893fb

Browse files
committed
add comments
1 parent b24670b commit df893fb

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

app/src/main/java/com/ethran/notable/editor/EditorViewModel.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,13 @@ data class ToolbarUiState(
119119
val notebookId: String? = null,
120120
val pageId: String? = null,
121121
val isBookActive: Boolean = false,
122-
122+
123+
// TODO: check correctness
123124
// Internal data for BackgroundSelector rendering if it remains stateless
124125
val backgroundType: String = "native",
125126
val backgroundPath: String = "blank",
126127
val backgroundPageNumber: Int = 0,
127-
val currentPageNumber: Int = 0
128+
val currentPageNumber: Int = 1
128129
)
129130

130131
@HiltViewModel

app/src/main/java/com/ethran/notable/editor/state/EditorState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum class Mode {
2020
Draw, Erase, Select, Line
2121
}
2222

23-
23+
// TODO: move to EditorViewModel, or somewhere else, this code shouldnt be here.
2424
class EditorState(
2525
val bookId: String? = null,
2626
val pageId: String,

0 commit comments

Comments
 (0)