rename a function

This commit is contained in:
tibbi 2016-10-22 22:06:52 +02:00
parent f490ddf1ee
commit 67214282fe
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ class MainActivity : SimpleActivity(), NavigationListener, ChangeViewDialog.Chan
ChangeViewDialog(this)
}
override fun ViewChanged(newView: Int) {
override fun viewChanged(newView: Int) {
updateView(newView)
}

View File

@ -25,7 +25,7 @@ class ChangeViewDialog(val activity: Activity) : AlertDialog.Builder(activity),
}
override fun onCheckedChanged(group: RadioGroup?, checkedId: Int) {
(activity as ChangeViewListener).ViewChanged(getNewView(checkedId))
(activity as ChangeViewListener).viewChanged(getNewView(checkedId))
dialog?.dismiss()
}
@ -44,6 +44,6 @@ class ChangeViewDialog(val activity: Activity) : AlertDialog.Builder(activity),
}
interface ChangeViewListener {
fun ViewChanged(newView: Int)
fun viewChanged(newView: Int)
}
}