properly update the font size without restarting the app

This commit is contained in:
tibbi 2020-06-18 19:23:43 +02:00
parent 6d0dd67af3
commit 880dd7bf27
2 changed files with 11 additions and 0 deletions

View file

@ -174,6 +174,11 @@ class ConversationsAdapter(activity: SimpleActivity, var conversations: ArrayLis
}
}
fun updateFontSize() {
fontSize = activity.getTextSize()
notifyDataSetChanged()
}
fun updateConversations(newConversations: ArrayList<Conversation>) {
val oldHashCode = conversations.hashCode()
val newHashCode = newConversations.hashCode()