mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +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())
|
.setProgressBarImage(ProgressBarDrawable())
|
||||||
.setProgressBarImageScaleType(ScalingUtils.ScaleType.FIT_CENTER)
|
.setProgressBarImageScaleType(ScalingUtils.ScaleType.FIT_CENTER)
|
||||||
.build()
|
.build()
|
||||||
with(binding.zoomable!!) {
|
with(binding.zoomable) {
|
||||||
setHierarchy(hierarchy)
|
setHierarchy(hierarchy)
|
||||||
setAllowTouchInterceptionWhileZoomed(true)
|
setAllowTouchInterceptionWhileZoomed(true)
|
||||||
setIsLongpressEnabled(false)
|
setIsLongpressEnabled(false)
|
||||||
|
|
@ -658,10 +658,10 @@ class ZoomableActivity : BaseActivity() {
|
||||||
.setUri(imageUri)
|
.setUri(imageUri)
|
||||||
.setControllerListener(loadingListener)
|
.setControllerListener(loadingListener)
|
||||||
.build()
|
.build()
|
||||||
binding.zoomable!!.controller = controller
|
binding.zoomable.controller = controller
|
||||||
|
|
||||||
if (photoBackgroundColor != null) {
|
if (photoBackgroundColor != null) {
|
||||||
binding.zoomable!!.setBackgroundColor(photoBackgroundColor!!)
|
binding.zoomable.setBackgroundColor(photoBackgroundColor!!)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!images.isNullOrEmpty()) {
|
if (!images.isNullOrEmpty()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue