SubwayTooter-Android-App/app/src/main/java/jp/juggler/subwaytooter/ActOSSLicense.kt

29 lines
700 B
Kotlin
Raw Normal View History

package jp.juggler.subwaytooter
import android.os.Bundle
2019-02-15 02:51:22 +01:00
import androidx.appcompat.app.AppCompatActivity
import android.widget.TextView
2018-12-01 00:02:18 +01:00
import jp.juggler.util.*
class ActOSSLicense : AppCompatActivity() {
companion object {
private val log = LogCategory("ActOSSLicense")
}
override fun onCreate(savedInstanceState : Bundle?) {
super.onCreate(savedInstanceState)
App1.setActivityTheme(this, noActionBar = true)
setContentView(R.layout.act_oss_license)
2019-08-31 16:33:13 +02:00
App1.initEdgeToEdge(this)
try {
val tv = findViewById<TextView>(R.id.tvText)
tv.text = loadRawResource(R.raw.oss_license).decodeUTF8()
} catch(ex : Throwable) {
log.trace(ex)
}
}
}