mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 13:23:58 +01:00
ZoomableActivity.kt: removed Unnecessary safe call on a non-null receiver of type ZoomableDraweeView
This commit is contained in:
parent
543d18b26e
commit
a1ab724c74
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue