mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +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()
|
||||
}
|
||||
}
|
||||
binding.zoomProgressBar?.let {
|
||||
binding.zoomProgressBar.let {
|
||||
it.visibility = if (result.status is CallbackStatus.FETCHING) View.VISIBLE else View.GONE
|
||||
}
|
||||
}
|
||||
|
|
@ -271,7 +271,7 @@ class ZoomableActivity : BaseActivity() {
|
|||
* Handles down swipe action
|
||||
*/
|
||||
private fun onDownSwiped() {
|
||||
if (binding.zoomable?.zoomableController?.isIdentity == false) {
|
||||
if (binding.zoomable.zoomableController?.isIdentity == false) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -341,7 +341,7 @@ class ZoomableActivity : BaseActivity() {
|
|||
* Handles up swipe action
|
||||
*/
|
||||
private fun onUpSwiped() {
|
||||
if (binding.zoomable?.zoomableController?.isIdentity == false) {
|
||||
if (binding.zoomable.zoomableController?.isIdentity == false) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -414,7 +414,7 @@ class ZoomableActivity : BaseActivity() {
|
|||
* Handles right swipe action
|
||||
*/
|
||||
private fun onRightSwiped(showAlreadyActionedImages: Boolean) {
|
||||
if (binding.zoomable?.zoomableController?.isIdentity == false) {
|
||||
if (binding.zoomable.zoomableController?.isIdentity == false) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -451,7 +451,7 @@ class ZoomableActivity : BaseActivity() {
|
|||
* Handles left swipe action
|
||||
*/
|
||||
private fun onLeftSwiped(showAlreadyActionedImages: Boolean) {
|
||||
if (binding.zoomable?.zoomableController?.isIdentity == false) {
|
||||
if (binding.zoomable.zoomableController?.isIdentity == false) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue