rename a function
This commit is contained in:
parent
f490ddf1ee
commit
67214282fe
|
@ -79,7 +79,7 @@ class MainActivity : SimpleActivity(), NavigationListener, ChangeViewDialog.Chan
|
|||
ChangeViewDialog(this)
|
||||
}
|
||||
|
||||
override fun ViewChanged(newView: Int) {
|
||||
override fun viewChanged(newView: Int) {
|
||||
updateView(newView)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue