ZoomableActivity.kt: removed Unnecessary safe call on a non-null receiver of type ZoomableDraweeView

This commit is contained in:
Junwei Bai 2024-10-18 00:42:52 +11:00
parent 543d18b26e
commit a1ab724c74

View file

@ -219,7 +219,7 @@ class ZoomableActivity : BaseActivity() {
onSwipe() onSwipe()
} }
} }
binding.zoomProgressBar?.let { binding.zoomProgressBar.let {
it.visibility = if (result.status is CallbackStatus.FETCHING) View.VISIBLE else View.GONE it.visibility = if (result.status is CallbackStatus.FETCHING) View.VISIBLE else View.GONE
} }
} }
@ -271,7 +271,7 @@ class ZoomableActivity : BaseActivity() {
* Handles down swipe action * Handles down swipe action
*/ */
private fun onDownSwiped() { private fun onDownSwiped() {
if (binding.zoomable?.zoomableController?.isIdentity == false) { if (binding.zoomable.zoomableController?.isIdentity == false) {
return return
} }
@ -341,7 +341,7 @@ class ZoomableActivity : BaseActivity() {
* Handles up swipe action * Handles up swipe action
*/ */
private fun onUpSwiped() { private fun onUpSwiped() {
if (binding.zoomable?.zoomableController?.isIdentity == false) { if (binding.zoomable.zoomableController?.isIdentity == false) {
return return
} }
@ -414,7 +414,7 @@ class ZoomableActivity : BaseActivity() {
* Handles right swipe action * Handles right swipe action
*/ */
private fun onRightSwiped(showAlreadyActionedImages: Boolean) { private fun onRightSwiped(showAlreadyActionedImages: Boolean) {
if (binding.zoomable?.zoomableController?.isIdentity == false) { if (binding.zoomable.zoomableController?.isIdentity == false) {
return return
} }
@ -451,7 +451,7 @@ class ZoomableActivity : BaseActivity() {
* Handles left swipe action * Handles left swipe action
*/ */
private fun onLeftSwiped(showAlreadyActionedImages: Boolean) { private fun onLeftSwiped(showAlreadyActionedImages: Boolean) {
if (binding.zoomable?.zoomableController?.isIdentity == false) { if (binding.zoomable.zoomableController?.isIdentity == false) {
return return
} }