Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2021 from WonderCsabo/kotlinJvmFieldExample
Browse files Browse the repository at this point in the history
Add @JvmField example in Kotlin sample project
  • Loading branch information
dodgex committed Jun 27, 2017
2 parents e42bb79 + 612cf9e commit 13c5192
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -4,6 +4,7 @@ import android.app.Activity
import android.widget.TextView
import org.androidannotations.annotations.AfterViews
import org.androidannotations.annotations.EActivity
import org.androidannotations.annotations.Extra
import org.androidannotations.annotations.UiThread
import org.androidannotations.annotations.Background
import org.androidannotations.annotations.ViewById
Expand All @@ -20,6 +21,10 @@ open class HelloAndroidActivity : Activity() {
@ViewById
protected lateinit var helloTextView: TextView

@Extra
@JvmField
protected var myIntExtra: Int = 0

@AfterViews
protected fun afterViews() {
computeDateBackground()
Expand Down

0 comments on commit 13c5192

Please sign in to comment.