add some new things to About screen

This commit is contained in:
tibbi
2016-12-11 23:07:15 +01:00
parent 6f70aac1bb
commit 7fec8e52fa
10 changed files with 52 additions and 3 deletions

View File

@ -18,10 +18,12 @@ class AboutActivity : SimpleActivity() {
setContentView(R.layout.activity_about)
setupEmail()
setupMoreApps()
setupCopyright()
setupRateUs()
setupInvite()
setupLicense()
setupDonate()
setupFacebook()
setupGPlus()
}
@ -34,6 +36,12 @@ class AboutActivity : SimpleActivity() {
about_email.movementMethod = LinkMovementMethod.getInstance()
}
private fun setupMoreApps() {
about_more_apps.setOnClickListener {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/dev?id=9070296388022589266")))
}
}
private fun setupCopyright() {
val versionName = BuildConfig.VERSION_NAME
val year = Calendar.getInstance().get(Calendar.YEAR)
@ -76,6 +84,12 @@ class AboutActivity : SimpleActivity() {
}
}
fun setupDonate() {
about_donate.setOnClickListener {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("http://simplemobiletools.github.io/donate")))
}
}
fun setupFacebook() {
about_facebook.setOnClickListener {
var link = "https://www.facebook.com/simplemobiletools"