mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Maintain consistent code style
This commit is contained in:
parent
52060ac9fd
commit
1f6ea3b55c
@ -67,9 +67,9 @@ class ProfilePictureView : RelativeLayout {
|
|||||||
glide.load(signalProfilePicture).diskCacheStrategy(DiskCacheStrategy.ALL).circleCrop().into(imageView)
|
glide.load(signalProfilePicture).diskCacheStrategy(DiskCacheStrategy.ALL).circleCrop().into(imageView)
|
||||||
} else {
|
} else {
|
||||||
val size = resources.getDimensionPixelSize(sizeID)
|
val size = resources.getDimensionPixelSize(sizeID)
|
||||||
val primaryAddress = TextSecurePreferences.getMasterHexEncodedPublicKey(context)
|
val masterHexEncodedPublicKey = TextSecurePreferences.getMasterHexEncodedPublicKey(context)
|
||||||
val profileAddress = if (recipient.isLocalNumber && primaryAddress != null) primaryAddress else hexEncodedPublicKey
|
val hepk = if (recipient.isLocalNumber && masterHexEncodedPublicKey != null) masterHexEncodedPublicKey else hexEncodedPublicKey
|
||||||
val jazzIcon = JazzIdenticonDrawable(size, size, profileAddress)
|
val jazzIcon = JazzIdenticonDrawable(size, size, hepk)
|
||||||
glide.load(jazzIcon).diskCacheStrategy(DiskCacheStrategy.ALL).circleCrop().into(imageView)
|
glide.load(jazzIcon).diskCacheStrategy(DiskCacheStrategy.ALL).circleCrop().into(imageView)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user