Skip to content

Commit

Permalink
common commit
Browse files Browse the repository at this point in the history
  • Loading branch information
iOrchid committed May 22, 2024
1 parent 90b6fa4 commit 64a4b8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# android official libs version
activity-ktx = "1.9.0"
appcompat = "1.6.1"
android-gradle-plugin = "8.4.0"# Android Studio Gradle Plugin 版本号
android-gradle-plugin = "8.4.1"# Android Studio Gradle Plugin 版本号
constraintlayout = "2.1.4"
core-ktx = "1.13.1"
fragment-ktx = "1.7.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,4 @@ internal class CoroutinesFragment : Fragment() {
}
}

private val TAG = "测试"

}
3 changes: 2 additions & 1 deletion kotlin/src/main/kotlin/org/zhiwei/kotlin/ui/FlowFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ internal class FlowFragment : Fragment() {
}
val launchIn = flow.launchIn(lifecycleScope)
lifecycleScope.launch {
val textView = view.findViewById<TextView>(R.id.tv_text_ticker_flow_kotlin)
flow.collect {
view.findViewById<TextView>(R.id.tv_text_ticker_flow_kotlin).text = it
textView.text = it
}
}
}
Expand Down

0 comments on commit 64a4b8c

Please sign in to comment.