From 815bafaee1201bec45676c341ace1cb34ac7ab18 Mon Sep 17 00:00:00 2001 From: Ivan Agosto Date: Fri, 22 Mar 2024 16:55:52 -0600 Subject: [PATCH] Update edittext to materialTextview --- .../agosto/p2play/ReproductorActivity.kt | 2 +- app/src/main/res/layout/activity_about.xml | 22 +++++++-------- .../main/res/layout/activity_reproductor.xml | 25 ++++++++++------- app/src/main/res/layout/activity_splash.xml | 7 +++-- app/src/main/res/layout/report_dialog.xml | 27 +++++++++++-------- app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values-it/strings.xml | 2 +- app/src/main/res/values-night/themes.xml | 1 + app/src/main/res/values/strings.xml | 2 +- app/src/main/res/values/themes.xml | 1 + 10 files changed, 51 insertions(+), 40 deletions(-) diff --git a/app/src/main/java/org/libre/agosto/p2play/ReproductorActivity.kt b/app/src/main/java/org/libre/agosto/p2play/ReproductorActivity.kt index 644118b..dae39e9 100644 --- a/app/src/main/java/org/libre/agosto/p2play/ReproductorActivity.kt +++ b/app/src/main/java/org/libre/agosto/p2play/ReproductorActivity.kt @@ -232,7 +232,7 @@ class ReproductorActivity : AppCompatActivity() { runOnUiThread { if (res) { ManagerSingleton.Toast(getString(R.string.makedCommentaryMsg), this) - commentaryText.text.clear() + commentaryText.text?.clear() this.getComments() } else { ManagerSingleton.Toast(getString(R.string.errorCommentaryMsg), this) diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 23f1b48..a00b1d5 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -29,7 +29,7 @@ android:contentDescription="Logo" app:srcCompat="@mipmap/ic_launcher" /> - @@ -39,11 +39,10 @@ android:layout_height="wrap_content" android:text="@string/aboutLabel" android:textAlignment="center" - android:textAppearance="@android:style/TextAppearance.Material.Medium.Inverse" - android:textColor="@android:color/black" + android:textAppearance="@android:style/TextAppearance.Material.Medium" android:textStyle="bold" /> - @@ -55,7 +54,7 @@ android:textAlignment="textStart" android:textSize="16sp" /> - - @@ -88,7 +87,7 @@ android:textSize="16sp" android:textStyle="bold" /> - @@ -98,11 +97,10 @@ android:layout_height="wrap_content" android:text="@string/aboutInstance" android:textAlignment="center" - android:textAppearance="@android:style/TextAppearance.Material.Medium.Inverse" - android:textColor="@android:color/black" + android:textAppearance="@android:style/TextAppearance.Material.Medium" android:textStyle="bold" /> - @@ -124,7 +122,7 @@ android:textSize="16sp" android:textStyle="bold" /> - @@ -136,7 +134,7 @@ android:textAlignment="textStart" android:textSize="16sp" /> - diff --git a/app/src/main/res/layout/activity_reproductor.xml b/app/src/main/res/layout/activity_reproductor.xml index abe99b4..7ca7ae6 100644 --- a/app/src/main/res/layout/activity_reproductor.xml +++ b/app/src/main/res/layout/activity_reproductor.xml @@ -164,7 +164,7 @@ android:layout_height="match_parent" android:layout_weight="1" android:adjustViewBounds="false" - android:contentDescription="@string/dislikeBtn" + android:contentDescription="@string/shareBtn" android:cropToPadding="false" android:visibility="visible" app:srcCompat="@drawable/ic_share" /> @@ -200,7 +200,7 @@ @@ -304,14 +305,20 @@ android:layout_weight="1" app:srcCompat="@drawable/default_avatar" /> - + android:layout_margin="4dp" + android:layout_weight="3" + android:hint="@string/commentHolder"> + + + diff --git a/app/src/main/res/layout/activity_splash.xml b/app/src/main/res/layout/activity_splash.xml index d3ef7af..b9336d1 100644 --- a/app/src/main/res/layout/activity_splash.xml +++ b/app/src/main/res/layout/activity_splash.xml @@ -29,7 +29,7 @@ android:contentDescription="@string/app_name" app:srcCompat="@mipmap/ic_launcher" /> - @@ -39,10 +39,9 @@ android:layout_height="wrap_content" android:text="@string/charging" android:textAlignment="center" - android:textAppearance="@android:style/TextAppearance.Material.Medium.Inverse" - android:textColor="@android:color/black" /> + android:textAppearance="@android:style/TextAppearance.Material.Medium" /> - diff --git a/app/src/main/res/layout/report_dialog.xml b/app/src/main/res/layout/report_dialog.xml index 8c8b872..92e76f7 100644 --- a/app/src/main/res/layout/report_dialog.xml +++ b/app/src/main/res/layout/report_dialog.xml @@ -6,21 +6,26 @@ android:orientation="vertical" android:padding="10dp" > - - + android:layout_margin="4dp" + android:layout_weight="3" + android:hint="@string/reportDialog"> + + + + + + + + - - \ No newline at end of file diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 2ec2f95..27e8262 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -9,7 +9,7 @@ Sobre P2Play P2Play es una aplicacion no-oficial de PeerTube. Tu puedes ver y cntribuir con el codigo en GitLab: Puedes seguir nuestro blog: - Copyleft GNU GPLv3 License + GNU GPLv3 License Sobre la instancia Para ver los terminos y mas visita la web: diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index dfd0cc4..877e37a 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -5,7 +5,7 @@ Informazioni su P2Play P2Play รจ un\'applicazione Android non ufficiale per PeerTube. Puoi visualizzare e contribuire al codice su GitLab: Puoi seguire il nostro blog: - Copyleft GNU GPLv3 License + GNU GPLv3 License Informazioni sull\'istanza Puoi vedere in termini ed altro sul web: Scegliere l\'istanza diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index c05bef2..5246f13 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -13,6 +13,7 @@ @color/md_theme_dark_onSurface @color/colorAccent @color/md_theme_dark_onBackground + @color/md_theme_dark_secondary