mirror of
https://codeberg.org/NextPush/nextpush-android.git
synced 2024-12-28 02:30:16 +01:00
Use bigText for in-app notif from channel
This commit is contained in:
parent
db43b1ffea
commit
bb49730c91
@ -18,6 +18,6 @@ object LocalNotification {
|
||||
|
||||
fun showNotification(context: Context, connectorToken: String, content: String) {
|
||||
val title = getDb(context).getNotificationTitle(connectorToken) ?: context.getString(R.string.app_name)
|
||||
FromPushNotification(context, title, content).show()
|
||||
FromPushNotification(context, title, content).showBig()
|
||||
}
|
||||
}
|
||||
|
@ -124,16 +124,17 @@ open class AppNotification(
|
||||
}
|
||||
}
|
||||
|
||||
fun create(): Notification {
|
||||
fun create(bigText: Boolean = false): Notification {
|
||||
createNotificationChannel()
|
||||
|
||||
return createNotification(
|
||||
createIntentToMain()
|
||||
createIntentToMain(),
|
||||
bigText
|
||||
)
|
||||
}
|
||||
|
||||
fun show() {
|
||||
show(notificationId, create())
|
||||
fun showBig() {
|
||||
show(notificationId, create(true))
|
||||
}
|
||||
|
||||
fun showSingle() {
|
||||
|
Loading…
Reference in New Issue
Block a user