File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
com.unity.mobile.notifications/Runtime/Android Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ public class AndroidNotificationCenter
588
588
589
589
private static AndroidJavaObject s_CurrentActivity ;
590
590
private static JniApi s_Jni ;
591
- private static int s_ApiLevel ;
591
+ private static int s_DeviceApiLevel ;
592
592
private static bool s_Initialized = false ;
593
593
594
594
/// <summary>
@@ -618,7 +618,7 @@ public static bool Initialize()
618
618
s_Jni = new JniApi ( notificationManagerClass , notificationManager ) ;
619
619
620
620
using ( var version = new AndroidJavaClass ( "android/os/Build$VERSION" ) )
621
- s_ApiLevel = version . GetStatic < int > ( "SDK_INT" ) ;
621
+ s_DeviceApiLevel = version . GetStatic < int > ( "SDK_INT" ) ;
622
622
623
623
s_Initialized = true ;
624
624
#endif
@@ -640,7 +640,7 @@ public static PermissionStatus UserPermissionToPost
640
640
{
641
641
if ( ! Initialize ( ) )
642
642
return PermissionStatus . Denied ;
643
- if ( s_ApiLevel < API_POST_NOTIFICATIONS_PERMISSION_REQUIRED )
643
+ if ( s_DeviceApiLevel < API_POST_NOTIFICATIONS_PERMISSION_REQUIRED )
644
644
return PermissionStatus . Allowed ;
645
645
646
646
var permissionStatus = ( PermissionStatus ) PlayerPrefs . GetInt ( SETTING_POST_NOTIFICATIONS_PERMISSION , ( int ) PermissionStatus . NotRequested ) ;
You can’t perform that action at this time.
0 commit comments