File tree Expand file tree Collapse file tree 2 files changed +23
-36
lines changed
java/com/simplemobiletools/notes/activities
kotlin/com/simplemobiletools/notes/activities Expand file tree Collapse file tree 2 files changed +23
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ package com.simplemobiletools.notes.activities
2+
3+ import android.content.Intent
4+ import android.net.Uri
5+ import android.os.Bundle
6+ import com.simplemobiletools.notes.R
7+ import kotlinx.android.synthetic.main.activity_license.*
8+
9+ class LicenseActivity : SimpleActivity () {
10+
11+ override fun onCreate (savedInstanceState : Bundle ? ) {
12+ super .onCreate(savedInstanceState)
13+ setContentView(R .layout.activity_license)
14+ license_butterknife_title.setOnClickListener { openUrl(R .string.butterknife_url) }
15+ license_ambilwarna_title.setOnClickListener { openUrl(R .string.ambilwarna_url) }
16+ }
17+
18+ private fun openUrl (id : Int ) {
19+ val url = resources.getString(id)
20+ val browserIntent = Intent (Intent .ACTION_VIEW , Uri .parse(url))
21+ startActivity(browserIntent)
22+ }
23+ }
You can’t perform that action at this time.
0 commit comments