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

Commit a3abf9e5 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Rework about screen

Changes title from Etar to Calendar
Makes app icon smaller
Hide some ui elements which we don't need
Change author text to include our name
Clicking on author points to our source code
parent 2fd0d7d5
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class AboutActivity : AppCompatActivity() {
        setContentView(binding.root)
        setSupportActionBar(binding.include.toolbar)
        supportActionBar?.setDisplayHomeAsUpEnabled(true)
        title = getString(R.string.preferences_menu_about)
        title = getString(R.string.e_preferences_menu_about)

        if (savedInstanceState == null) {
            supportFragmentManager
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ class AboutFragment : Fragment() {
        view.findViewById<TextView>(R.id.version).text = BuildConfig.VERSION_NAME

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

        view.findViewById<LinearLayout>(R.id.authorsLayout).setOnClickListener {
            startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.app_authors_url))))
+6 −4
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@

            <ImageView
                android:src="@mipmap/ic_launcher"
                android:layout_width="120dp"
                android:layout_height="120dp"
                android:layout_width="72dp"
                android:layout_height="72dp"
                android:layout_gravity="center"
                android:layout_margin="16dp" />

@@ -33,7 +33,8 @@
                android:gravity="center_vertical"
                android:clickable="true"
                android:focusable="true"
                android:background="?attr/selectableItemBackground">
                android:background="?attr/selectableItemBackground"
                android:visibility="gone">
                <ImageView
                    android:src="@drawable/ic_create"
                    android:layout_width="24dp"
@@ -137,7 +138,8 @@
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="16dp"
                android:layout_gravity="center_vertical">
                android:layout_gravity="center_vertical"
                android:visibility="gone">
                <Button
                    android:id="@+id/source"
                    android:layout_width="wrap_content"
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
        <item
            android:id="@+id/action_about"
            android:icon="@drawable/ic_info"
            android:title="@string/preferences_menu_about" />
            android:title="@string/e_preferences_menu_about" />

    </group>
</menu>
+2 −2
Original line number Diff line number Diff line
@@ -15,6 +15,6 @@
  ~  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@drawable/ic_launcher_background"/>
    <foreground android:drawable="@drawable/ic_launcher_foreground"/>
    <background android:drawable="@drawable/e_month_may"/>
    <foreground android:drawable="@drawable/e_day_7"/>
</adaptive-icon>
Loading