Commit e3a4df6b authored by Leonardo Aramaki's avatar Leonardo Aramaki

Wipe out unused method

parent e5aa863f
......@@ -7,8 +7,6 @@ import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.graphics.drawable.Icon
import android.media.RingtoneManager
import android.os.Build
import android.os.Bundle
......@@ -286,27 +284,6 @@ class PushManager @Inject constructor(
return Html.fromHtml(this as String)
}
//Notification.Builder extensions
@RequiresApi(Build.VERSION_CODES.N)
private fun Notification.Builder.addReplyAction(pushMessage: PushMessage): Notification.Builder {
val replyTextHint = context.getText(R.string.notif_action_reply_hint)
val replyRemoteInput = android.app.RemoteInput.Builder(REMOTE_INPUT_REPLY)
.setLabel(replyTextHint)
.build()
val replyIntent = Intent(context, DirectReplyReceiver::class.java)
replyIntent.action = ACTION_REPLY
replyIntent.putExtra(EXTRA_PUSH_MESSAGE, pushMessage)
val pendingIntent = PendingIntent.getBroadcast(
context, randomizer.nextInt(), replyIntent, PendingIntent.FLAG_UPDATE_CURRENT)
val replyAction = Notification.Action.Builder(
Icon.createWithResource(context, R.drawable.ic_reply_black_24px), replyTextHint, pendingIntent)
.addRemoteInput(replyRemoteInput)
.setAllowGeneratedReplies(true)
.build()
this.addAction(replyAction)
return this
}
// NotificationCompat.Builder extensions
private fun NotificationCompat.Builder.addReplyAction(pushMessage: PushMessage): NotificationCompat.Builder {
val replyTextHint = context.getText(R.string.notif_action_reply_hint)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment