Skip to content

Commit

Permalink
add unofficial to crashlog (#1653)
Browse files Browse the repository at this point in the history
Co-authored-by: Seishirou101 <[email protected]>
  • Loading branch information
Seishirou-J2K and Seishirou101 authored Oct 25, 2023
1 parent e2a3741 commit 83563d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/java/eu/kanade/tachiyomi/util/CrashLogUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 83563d6

Please sign in to comment.