File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.onesignal
3
3
import android.app.PendingIntent
4
4
import android.content.Context
5
5
import android.content.Intent
6
+ import androidx.annotation.RequiresApi
6
7
7
8
class GenerateNotificationOpenIntent (
8
9
private val context : Context ,
@@ -35,6 +36,7 @@ class GenerateNotificationOpenIntent(
35
36
)
36
37
}
37
38
39
+ @RequiresApi(android.os.Build .VERSION_CODES .M )
38
40
private fun getNewBaseIntentAndroidAPI23Plus (): Intent {
39
41
return Intent (
40
42
context,
@@ -43,6 +45,7 @@ class GenerateNotificationOpenIntent(
43
45
}
44
46
45
47
// See NotificationOpenedReceiverAndroid22AndOlder.java for details
48
+ @Deprecated(" Use getNewBaseIntentAndroidAPI23Plus instead for Android 6+" )
46
49
private fun getNewBaseIntentAndroidAPI22AndOlder (): Intent {
47
50
val intent = Intent (
48
51
context,
You can’t perform that action at this time.
0 commit comments