Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 431f8197 authored by cketti's avatar cketti
Browse files

Rework About screen

Add links to the website, the user forum, and the social media accounts.
parent d1f781f0
Loading
Loading
Loading
Loading
+19 −12
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.fsck.k9.ui.R
import de.cketti.library.changelog.ChangeLog
import java.util.Calendar
import timber.log.Timber

class AboutFragment : Fragment() {
@@ -33,10 +32,6 @@ class AboutFragment : Fragment() {
        val versionLayout = view.findViewById<View>(R.id.versionLayout)
        versionLayout.setOnClickListener { displayChangeLog() }

        val year = Calendar.getInstance().get(Calendar.YEAR).toString()
        val copyrightTextView = view.findViewById<TextView>(R.id.copyright)
        copyrightTextView.text = getString(R.string.app_copyright_fmt, year, year)

        val authorsLayout = view.findViewById<View>(R.id.authorsLayout)
        authorsLayout.setOnClickListener {
            openUrl(getString(R.string.app_authors_url))
@@ -47,17 +42,29 @@ class AboutFragment : Fragment() {
            openUrl(getString(R.string.app_license_url))
        }

        val sourceButton = view.findViewById<View>(R.id.source)
        sourceButton.setOnClickListener {
        val sourceCodeLayout = view.findViewById<View>(R.id.sourceCodeLayout)
        sourceCodeLayout.setOnClickListener {
            openUrl(getString(R.string.app_source_url))
        }

        val changelogButton = view.findViewById<View>(R.id.changelog)
        changelogButton.setOnClickListener { displayChangeLog() }
        val websiteLayout = view.findViewById<View>(R.id.websiteLayout)
        websiteLayout.setOnClickListener {
            openUrl(getString(R.string.app_webpage_url))
        }

        val userForumLayout = view.findViewById<View>(R.id.userForumLayout)
        userForumLayout.setOnClickListener {
            openUrl(getString(R.string.user_forum_url))
        }

        val fediverseLayout = view.findViewById<View>(R.id.fediverseLayout)
        fediverseLayout.setOnClickListener {
            openUrl(getString(R.string.fediverse_url))
        }

        val revisionsButton = view.findViewById<View>(R.id.revisions)
        revisionsButton.setOnClickListener {
            openUrl(getString(R.string.app_revision_url))
        val twitterLayout = view.findViewById<View>(R.id.twitterLayout)
        twitterLayout.setOnClickListener {
            openUrl(getString(R.string.twitter_url))
        }

        val manager = LinearLayoutManager(view.context)
+0 −9
Original line number Diff line number Diff line
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportHeight="24.0"
    android:viewportWidth="24.0">
    <path
	android:fillColor="#FFFFFFFF"
	android:pathData="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" />
</vector>
+0 −9
Original line number Diff line number Diff line
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportHeight="24.0"
    android:viewportWidth="24.0">
    <path
	android:fillColor="#FFFFFFFF"
	android:pathData="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" />
</vector>
+0 −10
Original line number Diff line number Diff line
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:alpha="0.54"
    android:viewportHeight="24.0"
    android:viewportWidth="24.0">
    <path
        android:fillColor="#FF000000"
        android:pathData="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" />
</vector>
+4 −4
Original line number Diff line number Diff line
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:alpha="0.54"
    android:viewportHeight="24.0"
    android:viewportWidth="24.0">
    android:tint="?attr/colorControlNormal"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:fillColor="#FF000000"
        android:fillColor="@android:color/white"
        android:pathData="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" />
</vector>
Loading