Version 0.9.41

Fixed status bar not being transparent for dark themes on Android Pie and under
Manga/Chapter titles are not longer truncated on notifications
This commit is contained in:
Jay 2019-12-23 13:23:37 -08:00
parent 3965353452
commit 7ad1dd8ee6
5 changed files with 12 additions and 5 deletions

View File

@ -4,7 +4,7 @@ Tachiyomi is a free and open source manga reader for Android.
![screenshots of app](./.github/readme-images/theming-screenshots.gif) ![screenshots of app](./.github/readme-images/theming-screenshots.gif)
## Newest Release ## Newest Release
[v0.9.4](https://github.com/Jays2Kings/tachiyomi/releases) [v0.9.41](https://github.com/Jays2Kings/tachiyomi/releases)
## Features ## Features

View File

@ -38,8 +38,8 @@ android {
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionCode 47 versionCode 48
versionName '0.9.4' versionName '0.9.41'
buildConfigField "String", "COMMIT_COUNT", "\"${getCommitCount()}\"" buildConfigField "String", "COMMIT_COUNT", "\"${getCommitCount()}\""
buildConfigField "String", "COMMIT_SHA", "\"${getGitSha()}\"" buildConfigField "String", "COMMIT_SHA", "\"${getGitSha()}\""

View File

@ -453,7 +453,7 @@ class LibraryUpdateService(
updates.forEach { updates.forEach {
val manga = it.first val manga = it.first
val chapters = it.second val chapters = it.second
val chapterNames = chapters.map { chapter -> chapter.name.chop(45) }.toSet() val chapterNames = chapters.map { chapter -> chapter.name }.toSet()
notifications.add(Pair(notification(Notifications.CHANNEL_NEW_CHAPTERS) { notifications.add(Pair(notification(Notifications.CHANNEL_NEW_CHAPTERS) {
setSmallIcon(R.drawable.ic_tachiyomi_icon) setSmallIcon(R.drawable.ic_tachiyomi_icon)
try { try {
@ -463,7 +463,7 @@ class LibraryUpdateService(
setLargeIcon(icon) setLargeIcon(icon)
} }
catch (e: Exception) { } catch (e: Exception) { }
setContentTitle(manga.title.chop(45)) setContentTitle(manga.title)
color = ContextCompat.getColor(this@LibraryUpdateService, R.color.colorAccentLight) color = ContextCompat.getColor(this@LibraryUpdateService, R.color.colorAccentLight)
val chaptersNames = if (chapterNames.size > 5) { val chaptersNames = if (chapterNames.size > 5) {
"${chapterNames.take(4).joinToString(", ")}, " + "${chapterNames.take(4).joinToString(", ")}, " +

View File

@ -1,5 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<changelog bulletedList="true"> <changelog bulletedList="true">
<changelogversion versionName="v0.9.41" changeDate="">
<changelogtext>Fixed status bar not being transparent for dark themes on Android Pie and
under</changelogtext>
<changelogtext>Manga/Chapter titles are not longer truncated on notifications</changelogtext>
</changelogversion>
<changelogversion versionName="v0.9.4" changeDate=""> <changelogversion versionName="v0.9.4" changeDate="">
<changelogtext>Automatically check for updates for installed extensions (Enable it by <changelogtext>Automatically check for updates for installed extensions (Enable it by
going to Extensions -> Overflow menu -> Auto-check for updates)</changelogtext> going to Extensions -> Overflow menu -> Auto-check for updates)</changelogtext>

View File

@ -22,6 +22,7 @@
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item> <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
<item name="md_background_color">@color/dialogDark</item> <item name="md_background_color">@color/dialogDark</item>
<item name="alertDialogTheme">@style/Theme.AlertDialog.Dark</item> <item name="alertDialogTheme">@style/Theme.AlertDialog.Dark</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<!-- Custom Attributes--> <!-- Custom Attributes-->