forked from upstream-mirrors/quik
updated to sdk 26
This commit is contained in:
@@ -22,7 +22,7 @@ class ConversationListFragment : QkFragment<ConversationListView, ConversationLi
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||
val view = inflater.inflate(R.layout.conversation_list_fragment, container, false)
|
||||
|
||||
conversationList = view.findViewById(R.id.conversation_list) as RecyclerView
|
||||
conversationList = view.findViewById(R.id.conversation_list)
|
||||
conversationList?.layoutManager = LinearLayoutManager(context)
|
||||
|
||||
return view
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.moez.QKSMS.R
|
||||
|
||||
class ConversationViewHolder(view: View) : RecyclerView.ViewHolder(view) {
|
||||
|
||||
val title = view.findViewById(R.id.conversation_title) as TextView
|
||||
val snippet = view.findViewById(R.id.conversation_snippet) as TextView
|
||||
val title: TextView = view.findViewById(R.id.conversation_title)
|
||||
val snippet: TextView = view.findViewById(R.id.conversation_snippet)
|
||||
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ class MessageListFragment : QkFragment<MessageListView, MessageListPresenter>(),
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
|
||||
val view = inflater.inflate(R.layout.message_list_fragment, container, false)
|
||||
|
||||
messageList = view.findViewById(R.id.message_list) as RecyclerView
|
||||
messageList = view.findViewById(R.id.message_list)
|
||||
|
||||
val layoutManager = LinearLayoutManager(context)
|
||||
layoutManager.stackFromEnd = true
|
||||
|
||||
@@ -7,6 +7,6 @@ import com.moez.QKSMS.R
|
||||
|
||||
class MessageViewHolder(view: View) : RecyclerView.ViewHolder(view) {
|
||||
|
||||
val body = view.findViewById(R.id.message_body) as TextView
|
||||
val body: TextView = view.findViewById(R.id.message_body)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user