Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 0c26e3c

Browse files
committed
Update 1.6.7
- Clear undo history when opening a note or file. - Update dependencies.
1 parent cc70895 commit 0c26e3c

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ android {
1717
applicationId = "com.yangdai.opennote"
1818
minSdk = 29
1919
targetSdk = 36
20-
versionCode = 1660
21-
versionName = "1.6.6"
20+
versionCode = 1670
21+
versionName = "1.6.7"
2222

2323
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2424
vectorDrawables {

app/src/main/java/com/yangdai/opennote/presentation/screen/FileScreen.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ fun FileScreen(
167167
oFileContent = fileContent
168168
viewModel.titleState.setTextAndPlaceCursorAtEnd(fileName)
169169
viewModel.contentState.setTextAndPlaceCursorAtEnd(fileContent)
170+
viewModel.titleState.undoState.clearHistory()
171+
viewModel.contentState.undoState.clearHistory()
170172
}
171173
} else {
172174
withContext(Dispatchers.Main) {

app/src/main/java/com/yangdai/opennote/presentation/viewmodel/SharedViewModel.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ class SharedViewModel @Inject constructor(
605605
}
606606
titleState.setTextAndPlaceCursorAtEnd(_oNote.title)
607607
contentState.setTextAndPlaceCursorAtEnd(_oNote.content)
608+
titleState.undoState.clearHistory()
609+
contentState.undoState.clearHistory()
608610
}
609611
}
610612

gradle/libs.versions.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[versions]
2-
agp = "8.12.0"
2+
agp = "8.13.0"
33
colorpickerCompose = "1.1.2"
44
documentfile = "1.1.0"
55
glance = "1.1.1"
6-
kotlin = "2.2.0"
7-
ksp = "2.2.0-2.0.2"
6+
kotlin = "2.2.20"
7+
ksp = "2.2.20-2.0.2"
88
kotlinxSerialization = "1.9.0"
99

10-
composeBom = "2025.08.00"
11-
activityCompose = "1.10.1"
12-
ktor = "3.2.3"
13-
lifecycleRuntimeCompose = "2.9.2"
14-
navigationCompose = "2.9.3"
10+
composeBom = "2025.09.00"
11+
activityCompose = "1.11.0"
12+
ktor = "3.3.0"
13+
lifecycleRuntimeCompose = "2.9.3"
14+
navigationCompose = "2.9.4"
1515

1616
junit = "4.13.2"
1717
junitVersion = "1.3.0"
@@ -22,9 +22,9 @@ hilt = "2.57"
2222
hiltNav = "1.2.0"
2323
room = "2.7.2"
2424
browser = "1.9.0"
25-
commonmark = "0.25.1"
25+
commonmark = "0.26.0"
2626
datastorePreferences = "1.1.7"
27-
workRuntimeKtx = "2.10.3"
27+
workRuntimeKtx = "2.10.4"
2828
coreSplashscreen = "1.2.0-rc01"
2929
biometricVersion = "1.4.0-alpha04"
3030

@@ -65,7 +65,7 @@ androidx-compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-toolin
6565
androidx-compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
6666
androidx-compose-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
6767
androidx-compose-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
68-
androidx-compose-material3 = { group = "androidx.compose.material3", name = "material3", version = "1.5.0-alpha02" }
68+
androidx-compose-material3 = { group = "androidx.compose.material3", name = "material3", version = "1.5.0-alpha04" }
6969
androidx-compose-material3-adaptive = { group = "androidx.compose.material3.adaptive", name = "adaptive" }
7070
androidx-compose-material3-adaptive-layout = { group = "androidx.compose.material3.adaptive", name = "adaptive-layout" }
7171
androidx-compose-material3-adaptive-navigation = { group = "androidx.compose.material3.adaptive", name = "adaptive-navigation" }

0 commit comments

Comments
 (0)