mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
add some new things to About screen
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user