mirror of
https://github.com/lone-cloud/prism-android
synced 2026-06-03 19:54:44 -07:00
Use distrib 0.4.0
This commit is contained in:
parent
35ddf45371
commit
3128056a52
3 changed files with 6 additions and 5 deletions
|
|
@ -30,9 +30,10 @@ fun getRegistrationState(context: Context, db: Database, token: String): Registr
|
|||
val title = ai?.let { context.getApplicationName(it) } ?: app.packageName
|
||||
val icon = context.getApplicationIcon(app.packageName)
|
||||
val description = if (title == app.packageName) {
|
||||
""
|
||||
app.description ?: ""
|
||||
} else {
|
||||
app.packageName
|
||||
app.description?.let { "$it — ${app.packageName}" }
|
||||
?: app.packageName
|
||||
}
|
||||
return RegistrationState(
|
||||
icon = icon,
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ fun MainPreview() {
|
|||
),
|
||||
RegistrationState(
|
||||
icon = null,
|
||||
title = null,
|
||||
title = "tld.app.3",
|
||||
token = "tok3",
|
||||
msgCount = 2,
|
||||
description = "tld.app.3",
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ androidx-activityCompose = "1.10.1"
|
|||
androidx-lifecycle = "2.8.7"
|
||||
androidx-work = "2.10.0"
|
||||
appcompat = "1.7.0"
|
||||
unifiedpush_distributor = "0.3.3"
|
||||
unifiedpush_distributor_ui = "0.3.2"
|
||||
unifiedpush_distributor = "0.4.0"
|
||||
unifiedpush_distributor_ui = "0.4.0"
|
||||
kotlin = "2.1.0"
|
||||
kotlinx_serializationJson = "1.8.0"
|
||||
ktlint = "12.1.2"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue