mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
Convert UploadCategoriesFragment to kotlin
This commit is contained in:
parent
78666ccbde
commit
e830ee2dc8
1 changed files with 3 additions and 2 deletions
|
|
@ -220,7 +220,7 @@ class UploadCategoriesFragment : UploadBaseFragment(), CategoriesContract.View {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun goToNextScreen() {
|
override fun goToNextScreen() {
|
||||||
callback!!.onNextButtonClicked(callback!!.getIndexInViewFlipper(this))
|
callback?.let { it.onNextButtonClicked(it.getIndexInViewFlipper(this)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun showNoCategorySelected() {
|
override fun showNoCategorySelected() {
|
||||||
|
|
@ -322,7 +322,8 @@ class UploadCategoriesFragment : UploadBaseFragment(), CategoriesContract.View {
|
||||||
mediaDetailFragment.onResume()
|
mediaDetailFragment.onResume()
|
||||||
goBackToPreviousScreen()
|
goBackToPreviousScreen()
|
||||||
} else {
|
} else {
|
||||||
callback!!.onPreviousButtonClicked(callback!!.getIndexInViewFlipper(this))
|
callback?.let { it.onPreviousButtonClicked(it.getIndexInViewFlipper(this)) }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue