-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
yev-kanivets
left a comment
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, Bohdan! :)
No description provided.