Skip to content

Commit 8f423e3

Browse files
committed
Merge pull request androidannotations#1728 from WonderCsabo/kotlinExampleProtected
Make members in Kotlin example protected
2 parents 558b908 + 8ae6d54 commit 8f423e3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

examples/kotlin/src/main/kotlin/org/androidannotations/gradle/activity/HelloAndroidActivity.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ import java.util.Date
1515
open public class HelloAndroidActivity : Activity() {
1616

1717
@StringRes
18-
lateinit var hello: String
18+
protected lateinit var hello: String
1919

2020
@ViewById
21-
lateinit var helloTextView: TextView
21+
protected lateinit var helloTextView: TextView
2222

2323
@AfterViews
24-
fun afterViews(): Unit {
24+
protected fun afterViews() {
2525
computeDateBackground()
2626
}
2727

2828
@Background
29-
open fun computeDateBackground(): Unit {
29+
protected open fun computeDateBackground() {
3030
val now = Date()
3131
val helloMessage = String.format(hello, now.toString())
3232

3333
updateHelloTextView(helloMessage)
3434
}
3535

3636
@UiThread
37-
open fun updateHelloTextView(helloMessage: String): Unit {
37+
protected open fun updateHelloTextView(helloMessage: String) {
3838
helloTextView.text = helloMessage
3939
}
4040
}

0 commit comments

Comments
 (0)