Skip to content

Commit 64a4b8c

Browse files
author
iOrchid
committed
common commit
1 parent 90b6fa4 commit 64a4b8c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# android official libs version
55
activity-ktx = "1.9.0"
66
appcompat = "1.6.1"
7-
android-gradle-plugin = "8.4.0"# Android Studio Gradle Plugin 版本号
7+
android-gradle-plugin = "8.4.1"# Android Studio Gradle Plugin 版本号
88
constraintlayout = "2.1.4"
99
core-ktx = "1.13.1"
1010
fragment-ktx = "1.7.0"

kotlin/src/main/kotlin/org/zhiwei/kotlin/ui/CoroutinesFragment.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,4 @@ internal class CoroutinesFragment : Fragment() {
109109
}
110110
}
111111

112-
private val TAG = "测试"
113-
114112
}

kotlin/src/main/kotlin/org/zhiwei/kotlin/ui/FlowFragment.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ internal class FlowFragment : Fragment() {
3636
}
3737
val launchIn = flow.launchIn(lifecycleScope)
3838
lifecycleScope.launch {
39+
val textView = view.findViewById<TextView>(R.id.tv_text_ticker_flow_kotlin)
3940
flow.collect {
40-
view.findViewById<TextView>(R.id.tv_text_ticker_flow_kotlin).text = it
41+
textView.text = it
4142
}
4243
}
4344
}

0 commit comments

Comments
 (0)