add brackets and white spaces to follow code style

This commit is contained in:
micheal Samuel Naeem 2020-07-04 17:11:12 +02:00
parent bb12ca5e87
commit 7b1b34dbbe
1 changed files with 10 additions and 3 deletions

View File

@ -454,11 +454,18 @@ fun Context.getNameAndPhotoFromPhoneNumber(number: String): NamePhoto? {
fun Context.updateUnreadCountBadge(conversations : ArrayList<Conversation>){ fun Context.updateUnreadCountBadge(conversations : ArrayList<Conversation>){
var count = 0 var count = 0
conversations.forEach { conversations.forEach {
if(!it.read) count++ if(!it.read) {
count++
}
}
if(count == 0) {
ShortcutBadger.removeCount(this)
} else {
ShortcutBadger.applyCount(this,count)
} }
if(count == 0) ShortcutBadger.removeCount(this)
else ShortcutBadger.applyCount(this,count)
} }