creating a helper function for fetching the thread id

This commit is contained in:
tibbi 2020-04-05 17:38:25 +02:00
parent 3373ce66e1
commit 420a88c74c
3 changed files with 19 additions and 14 deletions

View file

@ -50,8 +50,8 @@ class ThreadActivity : SimpleActivity() {
}
private fun setupAdapter() {
val threadID = intent.getIntExtra(THREAD_ID, 0)
val items = getThreadItems(threadID)
val threadId = intent.getIntExtra(THREAD_ID, 0)
val items = getThreadItems(threadId)
runOnUiThread {
val adapter = ThreadAdapter(this, items, thread_messages_list, thread_messages_fastscroller) {}