Skip to content

Commit

Permalink
fix action crash
Browse files Browse the repository at this point in the history
  • Loading branch information
A.Badakhshan committed Apr 18, 2020
1 parent 7f1564e commit 0289e8d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package ir.ayantech.pushsdk.model.api

import android.content.Context
import android.graphics.Bitmap
import ir.ayantech.pushsdk.helper.ImageHelper
import ir.ayantech.pushsdk.model.Message
Expand Down Expand Up @@ -27,7 +28,8 @@ class NotificationObject<T : PushNotificationAction>(
)
}

fun performAction() {
fun performAction(context: Context) {
message?.action?.context = context
message?.action?.doAction()
}

Expand Down

0 comments on commit 0289e8d

Please sign in to comment.