File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
kotlin/src/main/kotlin/org/zhiwei/kotlin/ui Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 4
4
# android official libs version
5
5
activity-ktx = " 1.9.0"
6
6
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 版本号
8
8
constraintlayout = " 2.1.4"
9
9
core-ktx = " 1.13.1"
10
10
fragment-ktx = " 1.7.0"
Original file line number Diff line number Diff line change @@ -109,6 +109,4 @@ internal class CoroutinesFragment : Fragment() {
109
109
}
110
110
}
111
111
112
- private val TAG = " 测试"
113
-
114
112
}
Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ internal class FlowFragment : Fragment() {
36
36
}
37
37
val launchIn = flow.launchIn(lifecycleScope)
38
38
lifecycleScope.launch {
39
+ val textView = view.findViewById<TextView >(R .id.tv_text_ticker_flow_kotlin)
39
40
flow.collect {
40
- view.findViewById< TextView >( R .id.tv_text_ticker_flow_kotlin) .text = it
41
+ textView .text = it
41
42
}
42
43
}
43
44
}
You can’t perform that action at this time.
0 commit comments