From ea8021ed5adbe0467f3b07fdfe1df079febef188 Mon Sep 17 00:00:00 2001
From: Neko Qiqi <80700814+mu7220@users.noreply.github.com>
Date: Sun, 10 Dec 2023 13:47:12 +0800
Subject: [PATCH] Updater: Adjust the layout of the returned changelog (#2)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* 调整更新日志排版
* 加粗一下字体
---
.../main/java/top/yukonga/update/ui/MainActivity.kt | 2 +-
app/src/main/res/layout/main_content.xml | 11 ++++++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/top/yukonga/update/ui/MainActivity.kt b/app/src/main/java/top/yukonga/update/ui/MainActivity.kt
index a9e048c3..472eda2a 100644
--- a/app/src/main/java/top/yukonga/update/ui/MainActivity.kt
+++ b/app/src/main/java/top/yukonga/update/ui/MainActivity.kt
@@ -223,7 +223,7 @@ class MainActivity : AppCompatActivity() {
val log = StringBuilder()
romInfo.currentRom.changelog!!.forEach {
- log.append(it.key).append("\n").append(it.value.txt.joinToString("\n")).append("\n")
+ log.append(it.key).append("\n- ").append(it.value.txt.joinToString("\n- ")).append("\n\n")
}
changelogInfo.setTextAnimation(
diff --git a/app/src/main/res/layout/main_content.xml b/app/src/main/res/layout/main_content.xml
index ab94b202..810ee628 100644
--- a/app/src/main/res/layout/main_content.xml
+++ b/app/src/main/res/layout/main_content.xml
@@ -150,6 +150,7 @@
android:gravity="center_vertical"
android:text="@string/codename"
android:textColor="?attr/colorOnSurface"
+ android:textStyle="bold"
android:visibility="gone" />
+ android:textColor="?attr/colorOnSurface"
+ android:textStyle="bold" />