mirror of
https://github.com/nextcloud/talk-android
synced 2025-08-08 20:45:45 +01:00
update threads overview in onResume
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
172d2291cc
commit
a7ca099cbc
@ -69,6 +69,8 @@ class ThreadsOverviewActivity : BaseActivity() {
|
|||||||
|
|
||||||
lateinit var threadsOverviewViewModel: ThreadsOverviewViewModel
|
lateinit var threadsOverviewViewModel: ThreadsOverviewViewModel
|
||||||
|
|
||||||
|
var roomToken: String = ""
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
NextcloudTalkApplication.sharedApplication!!.componentApplication.inject(this)
|
NextcloudTalkApplication.sharedApplication!!.componentApplication.inject(this)
|
||||||
@ -80,9 +82,7 @@ class ThreadsOverviewActivity : BaseActivity() {
|
|||||||
val colorScheme = viewThemeUtils.getColorScheme(this)
|
val colorScheme = viewThemeUtils.getColorScheme(this)
|
||||||
|
|
||||||
val extras: Bundle? = intent.extras
|
val extras: Bundle? = intent.extras
|
||||||
val roomToken = extras?.getString(KEY_ROOM_TOKEN).orEmpty()
|
roomToken = extras?.getString(KEY_ROOM_TOKEN).orEmpty()
|
||||||
|
|
||||||
threadsOverviewViewModel.init(roomToken)
|
|
||||||
|
|
||||||
setContent {
|
setContent {
|
||||||
val backgroundColor = colorResource(id = R.color.bg_default)
|
val backgroundColor = colorResource(id = R.color.bg_default)
|
||||||
@ -136,6 +136,7 @@ class ThreadsOverviewActivity : BaseActivity() {
|
|||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
supportActionBar?.show()
|
supportActionBar?.show()
|
||||||
|
threadsOverviewViewModel.init(roomToken)
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
Loading…
Reference in New Issue
Block a user