mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
style(AppUpdateNotifier): Fix consistency
This commit is contained in:
parent
dbf5a7efcd
commit
eeb572740a
2 changed files with 6 additions and 1 deletions
|
@ -13,6 +13,10 @@ The format is simplified version of [Keep a Changelog](https://keepachangelog.co
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
- Adjust chapter title-details contrast
|
- Adjust chapter title-details contrast
|
||||||
|
- Make app updater notification consistent with other notifications
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Fix "Remove from read" not working properly
|
||||||
|
|
||||||
## [1.9.1]
|
## [1.9.1]
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ import eu.kanade.tachiyomi.data.notification.NotificationHandler
|
||||||
import eu.kanade.tachiyomi.data.notification.NotificationReceiver
|
import eu.kanade.tachiyomi.data.notification.NotificationReceiver
|
||||||
import eu.kanade.tachiyomi.data.notification.Notifications
|
import eu.kanade.tachiyomi.data.notification.Notifications
|
||||||
import eu.kanade.tachiyomi.util.system.getResourceColor
|
import eu.kanade.tachiyomi.util.system.getResourceColor
|
||||||
|
import eu.kanade.tachiyomi.util.system.notificationBuilder
|
||||||
import eu.kanade.tachiyomi.util.system.notificationManager
|
import eu.kanade.tachiyomi.util.system.notificationManager
|
||||||
import yokai.i18n.MR
|
import yokai.i18n.MR
|
||||||
import yokai.util.lang.getString
|
import yokai.util.lang.getString
|
||||||
|
@ -30,7 +31,7 @@ internal class AppUpdateNotifier(private val context: Context) {
|
||||||
* Builder to manage notifications.
|
* Builder to manage notifications.
|
||||||
*/
|
*/
|
||||||
val notificationBuilder by lazy {
|
val notificationBuilder by lazy {
|
||||||
NotificationCompat.Builder(context, Notifications.CHANNEL_COMMON).apply {
|
context.notificationBuilder(Notifications.CHANNEL_COMMON).apply {
|
||||||
setSmallIcon(AR.drawable.stat_sys_download)
|
setSmallIcon(AR.drawable.stat_sys_download)
|
||||||
setContentTitle(context.getString(MR.strings.app_name))
|
setContentTitle(context.getString(MR.strings.app_name))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue