Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Conversation

@bogdan-evtushenko
Copy link
Collaborator

No description provided.

Copy link
Owner

@yev-kanivets yev-kanivets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job overall 👍 Just few comments.

private lateinit var tvDefaultAccountSum: TextView
private lateinit var tvCurrency: TextView

override fun getContentViewId(): Int {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kotlin way of doing it would be override fun getContentViewId() = R.layout.activity_main.


private fun showReport() {
AnswersProxy.get().logButton("Show Report")
val intent = Intent(this@MainActivity, ReportActivity::class.java)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MainActivity isn't needed here and in few other places.

if (resultCode == AppCompatActivity.RESULT_OK) {
when (requestCode) {
REQUEST_ACTION_RECORD -> {
appComponent.inject(this@MainActivity)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember right it wasn't here before kotlinification.

}

override fun update() {
println("Hello update")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, Bohdan! :)

@bogdan-evtushenko bogdan-evtushenko merged commit 13ea4fa into dev Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants