Skip to content

Commit 4711005

Browse files
committed
kotlin sample
1 parent 2e8acbb commit 4711005

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/src/main/java/com/stringcare/sample/MainActivity.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package com.stringcare.sample
33
import android.support.v7.app.AppCompatActivity
44
import android.os.Bundle
55
import com.stringcare.library.SC
6+
import com.stringcare.library.reveal
67
import kotlinx.android.synthetic.main.activity_main.*
78

89
class MainActivity : AppCompatActivity() {
@@ -12,8 +13,8 @@ class MainActivity : AppCompatActivity() {
1213
setContentView(R.layout.activity_main)
1314
SC.init { applicationContext }
1415

15-
kenobi.text = SC.reveal(R.string.kenobi)
16-
r2d2.text = SC.reveal(R.string.r2d2)
17-
c3po.text = SC.reveal(R.string.c3po, false)
16+
kenobi.text = R.string.kenobi.reveal()
17+
r2d2.text = R.string.r2d2.reveal()
18+
c3po.text = R.string.c3po.reveal(false)
1819
}
1920
}

0 commit comments

Comments
 (0)