[brand] Fork info @ AboutActivity

This commit is contained in:
kyori 2018-07-24 15:22:02 +09:00 committed by kyori19
parent a4d42b3852
commit 084f5b5fe8
3 changed files with 19 additions and 1 deletions

View File

@ -2,7 +2,6 @@ package com.keylesspalace.tusky
import android.content.Intent
import android.os.Bundle
import androidx.annotation.StringRes
import android.text.SpannableString
import android.text.SpannableStringBuilder
import android.text.method.LinkMovementMethod
@ -10,6 +9,7 @@ import android.text.style.URLSpan
import android.text.util.Linkify
import android.view.MenuItem
import android.widget.TextView
import androidx.annotation.StringRes
import com.keylesspalace.tusky.di.Injectable
import com.keylesspalace.tusky.util.CustomURLSpan
import kotlinx.android.synthetic.main.activity_about.*
@ -33,6 +33,7 @@ class AboutActivity : BottomSheetActivity(), Injectable {
aboutLicenseInfoTextView.setClickableTextWithoutUnderlines(R.string.about_tusky_license)
aboutWebsiteInfoTextView.setClickableTextWithoutUnderlines(R.string.about_project_site)
aboutYuitoTextView.setClickableTextWithoutUnderlines(R.string.about_yuito)
aboutBugsFeaturesInfoTextView.setClickableTextWithoutUnderlines(R.string.about_bug_feature_request_site)
tuskyProfileButton.setOnClickListener {

View File

@ -54,6 +54,19 @@
android:textSize="16sp"
tools:text="@string/about_tusky_license" />
<TextView
android:id="@+id/aboutYuitoTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:lineSpacingMultiplier="1.2"
android:paddingStart="@dimen/text_content_margin"
android:paddingEnd="@dimen/text_content_margin"
android:textAlignment="center"
android:textIsSelectable="true"
android:textSize="16sp"
tools:text="@string/about_yuito" />
<TextView
android:id="@+id/aboutWebsiteInfoTextView"
android:layout_width="wrap_content"

View File

@ -280,6 +280,10 @@
to show we do not mean the software is gratis. Source: https://www.gnu.org/philosophy/free-sw.html
* the url can be changed to link to the localized version of the license.
-->
<string name="about_yuito">
Yuito is fork of Tusky.\n
https://github.com/tuskyapp/Tusky
</string>
<string name="about_project_site">
Project website:\n
https://tusky.app