Maintain consistent code style

This commit is contained in:
gmbnt 2020-04-06 14:34:19 +10:00
parent 52060ac9fd
commit 1f6ea3b55c

View File

@ -67,9 +67,9 @@ class ProfilePictureView : RelativeLayout {
glide.load(signalProfilePicture).diskCacheStrategy(DiskCacheStrategy.ALL).circleCrop().into(imageView)
} else {
val size = resources.getDimensionPixelSize(sizeID)
val primaryAddress = TextSecurePreferences.getMasterHexEncodedPublicKey(context)
val profileAddress = if (recipient.isLocalNumber && primaryAddress != null) primaryAddress else hexEncodedPublicKey
val jazzIcon = JazzIdenticonDrawable(size, size, profileAddress)
val masterHexEncodedPublicKey = TextSecurePreferences.getMasterHexEncodedPublicKey(context)
val hepk = if (recipient.isLocalNumber && masterHexEncodedPublicKey != null) masterHexEncodedPublicKey else hexEncodedPublicKey
val jazzIcon = JazzIdenticonDrawable(size, size, hepk)
glide.load(jazzIcon).diskCacheStrategy(DiskCacheStrategy.ALL).circleCrop().into(imageView)
}
} else {