Commit 779f19d6 authored by Shailesh Baldaniya's avatar Shailesh Baldaniya

feat: Add string traslation for portuguese(pt-rBR)

parent 2fcc8b33
......@@ -48,7 +48,6 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
private val handler = Handler()
private var listJob: Job? = null
private var baseAdapter: ChatRoomsAdapter? = null
private var sectionedAdapter: SimpleSectionedRecyclerViewAdapter? = null
companion object {
......@@ -242,14 +241,14 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
private fun setSections() {
//Don't add section if not grouping by RoomType
if (!SharedPreferenceHelper.getBoolean(Constants.CHATROOM_GROUP_BY_TYPE_KEY, false)){
if (!SharedPreferenceHelper.getBoolean(Constants.CHATROOM_GROUP_BY_TYPE_KEY, false)) {
sectionedAdapter?.clearSections()
return
}
val sections = ArrayList<SimpleSectionedRecyclerViewAdapter.Section>()
baseAdapter?.dataSet?.let {
sectionedAdapter?.baseAdapter?.dataSet?.let {
var previousChatRoomType = ""
for ((position, chatRoom) in it.withIndex()) {
......
......@@ -149,4 +149,13 @@
<!-- Emoji message-->
<string name="msg_no_recent_emoji">Nenhum emoji recente</string>
<!-- Sorting and grouping-->
<string name="menu_chatroom_sort">Ordenar</string>
<string name="dialog_sort_title">Ordenar por</string>
<string name="dialog_sort_by_alphabet">Alfabeticamente</string>
<string name="dialog_sort_by_activity">Atividade</string>
<string name="dialog_group_by_type">Agrupar por tipo</string>
<string name="dialog_group_favourites">Grupos favoritos</string>
<string name="chatroom_header">Cabeçalho</string>
</resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment