2021-07-20 08:06:59 +02:00
|
|
|
package org.thoughtcrime.securesms.conversation.v2.utilities
|
|
|
|
|
|
|
|
import android.content.Context
|
|
|
|
import network.loki.messenger.R
|
|
|
|
import org.session.libsession.utilities.recipients.Recipient
|
2023-06-02 11:41:58 +02:00
|
|
|
import org.thoughtcrime.securesms.showSessionDialog
|
2021-07-20 08:06:59 +02:00
|
|
|
|
|
|
|
object NotificationUtils {
|
|
|
|
fun showNotifyDialog(context: Context, thread: Recipient, notifyTypeHandler: (Int)->Unit) {
|
2023-06-02 11:41:58 +02:00
|
|
|
context.showSessionDialog {
|
2023-05-30 09:19:07 +02:00
|
|
|
title(R.string.RecipientPreferenceActivity_notification_settings)
|
|
|
|
singleChoiceItems(
|
|
|
|
context.resources.getStringArray(R.array.notify_types),
|
|
|
|
thread.notifyType
|
|
|
|
) { notifyTypeHandler(it) }
|
|
|
|
}
|
2021-07-20 08:06:59 +02:00
|
|
|
}
|
2023-05-30 09:19:07 +02:00
|
|
|
}
|