From 83563d6a8004f2effc319a94ed5eded0d10d5176 Mon Sep 17 00:00:00 2001 From: Seishirou-J2K <103472524+Seishirou-J2K@users.noreply.github.com> Date: Wed, 25 Oct 2023 19:03:53 +0000 Subject: [PATCH] add unofficial to crashlog (#1653) Co-authored-by: Seishirou101 <57241064+Seishirou101@users.noreply.github.com> --- app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt b/app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt index e435966bf9fb..cecfd371b4ee 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt @@ -59,17 +59,18 @@ class CrashLogUtil(private val context: Context) { val availableExtension = availableExtensions.find { it.pkgName == installedExtension.pkgName } val hasUpdate = (availableExtension?.versionCode ?: 0) > installedExtension.versionCode - if (hasUpdate || installedExtension.isObsolete) { + if (hasUpdate || installedExtension.isObsolete || installedExtension.isUnofficial) { val extensionInfo = "Extension Name: ${installedExtension.name}\n" + "Installed Version: ${installedExtension.versionName}\n" + "Available Version: ${availableExtension?.versionName ?: "N/A"}\n" + - "Obsolete: ${installedExtension.isObsolete}\n" + "Obsolete: ${installedExtension.isObsolete}\n" + + "Unofficial: ${installedExtension.isUnofficial}\n" extensionInfoList.add(extensionInfo) } } if (extensionInfoList.isNotEmpty()) { - extensionInfoList.add(0, "Extensions that are outdated or obsolete") + extensionInfoList.add(0, "Extensions that are outdated, obsolete, or unofficial") } return extensionInfoList.joinToString("\n") }