mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
ZoomableActivity.kt: removed Unnecessary non-null assertion (!!) on a non-null receiver of type ZoomableDraweeView
This commit is contained in:
parent
b7c9520ed8
commit
0dc379acdf
1 changed files with 3 additions and 3 deletions
|
|
@ -646,7 +646,7 @@ class ZoomableActivity : BaseActivity() {
|
|||
.setProgressBarImage(ProgressBarDrawable())
|
||||
.setProgressBarImageScaleType(ScalingUtils.ScaleType.FIT_CENTER)
|
||||
.build()
|
||||
with(binding.zoomable!!) {
|
||||
with(binding.zoomable) {
|
||||
setHierarchy(hierarchy)
|
||||
setAllowTouchInterceptionWhileZoomed(true)
|
||||
setIsLongpressEnabled(false)
|
||||
|
|
@ -658,10 +658,10 @@ class ZoomableActivity : BaseActivity() {
|
|||
.setUri(imageUri)
|
||||
.setControllerListener(loadingListener)
|
||||
.build()
|
||||
binding.zoomable!!.controller = controller
|
||||
binding.zoomable.controller = controller
|
||||
|
||||
if (photoBackgroundColor != null) {
|
||||
binding.zoomable!!.setBackgroundColor(photoBackgroundColor!!)
|
||||
binding.zoomable.setBackgroundColor(photoBackgroundColor!!)
|
||||
}
|
||||
|
||||
if (!images.isNullOrEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue