updated to sdk 26

This commit is contained in:
Moez Bhatti
2017-08-13 16:13:04 -04:00
parent afe8f08065
commit 5d621b53a0
7 changed files with 12 additions and 12 deletions
@@ -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)
}