File tree Expand file tree Collapse file tree 6 files changed +1
-6
lines changed
samplekotlin/src/main/java/com/example/chattutorial Expand file tree Collapse file tree 6 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 11buildscript {
2- ext. kotlin_version = " 1.4.30 "
2+ ext. kotlin_version = " 1.5.10 "
33 repositories {
44 google()
55 jcenter()
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ class ChannelActivity : AppCompatActivity() {
4949 messageInputViewModel.bindView(binding.messageInputView, this )
5050
5151 // Step 3 - Let both MessageListHeaderView and MessageInputView know when we open a thread
52- // Note: the observe syntax used here requires Kotlin 1.4
5352 messageListViewModel.mode.observe(this ) { mode ->
5453 when (mode) {
5554 is Thread -> {
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ class ChannelActivity2 : AppCompatActivity() {
5050 messageInputViewModel.bindView(binding.messageInputView, this )
5151
5252 // Step 3 - Let both MessageListHeaderView and MessageInputView know when we open a thread
53- // Note: the observe syntax used here requires Kotlin 1.4
5453 messageListViewModel.mode.observe(this ) { mode ->
5554 when (mode) {
5655 is Thread -> {
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ class ChannelActivity3 : AppCompatActivity() {
5252 messageInputViewModel.bindView(binding.messageInputView, this )
5353
5454 // Step 3 - Let both MessageListHeaderView and MessageInputView know when we open a thread
55- // Note: the observe syntax used here requires Kotlin 1.4
5655 messageListViewModel.mode.observe(this ) { mode ->
5756 when (mode) {
5857 is Thread -> {
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ class ChannelActivity4 : AppCompatActivity() {
5555 messageInputViewModel.bindView(binding.messageInputView, this )
5656
5757 // Step 3 - Let both MessageListHeaderView and MessageInputView know when we open a thread
58- // Note: the observe syntax used here requires Kotlin 1.4
5958 messageListViewModel.mode.observe(this ) { mode ->
6059 when (mode) {
6160 is Thread -> {
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ class MainActivity : AppCompatActivity() {
5252
5353 // Step 4 - Connect the ChannelListViewModel to the ChannelListView, loose
5454 // coupling makes it easy to customize
55- // Note: the listener syntax used here requires Kotlin 1.4
5655 viewModel.bindView(binding.channelListView, this )
5756 binding.channelListView.setChannelItemClickListener { channel ->
5857 startActivity(ChannelActivity4 .newIntent(this , channel))
You can’t perform that action at this time.
0 commit comments