Skip to content

Shows changelog from last to n(version) #1

Open
@PokerAsh

Description

@PokerAsh

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:

  1. Shows all changelog(version: 1/2/3)
  2. Shows version: 2/3
  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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions