Open
Description
My code:
ClickListener:
et_show_version1.setText("1.0.0")
et_show_version1.setOnClickListener { _ -> showChangelog(1, et_show_version1.text.toString()) }
et_show_version2.setText("1.0.1")
et_show_version2.setOnClickListener { _ -> showChangelog(2, et_show_version2.text.toString()) }
et_show_version3.setText("1.0.2")
et_show_version3.setOnClickListener { _ -> showChangelog(3, et_show_version3.text.toString()) }
showChangelog
function:
private fun showChangelog(version: Int = Changelog.ALL_VERSIONS, versionName: String) {
Changelog.createDialog(ctx = mActivity, versionCode = version, title = versionName).show()
}
This shows me next:
- Shows all changelog(version: 1/2/3)
- Shows version: 2/3
- Shows version 3
Is that right? I just wanted to show to user, that changelog which he hit the button to.
Metadata
Metadata
Assignees
Labels
No labels