Skip to content

Commit d3aec83

Browse files
committed
Use value directly, fails on older devices otherwise
1 parent c2cf2b4 commit d3aec83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.mobile.notifications/Tests/Runtime/Android/AndroidNotificationSimpleTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ AndroidNotificationIntentData SerializeDeserializeNotificationIntent(AndroidJava
259259
intent.Call<AndroidJavaObject>("putExtra", "unityNotification", javaNotif).Dispose();
260260
var utilsClass = new AndroidJavaClass("com.unity.androidnotifications.UnityNotificationUtilities");
261261

262-
var prefs = context.Call<AndroidJavaObject>("getSharedPreferences", "android.notification.test.key", context.GetStatic<int>("MODE_PRIVATE"));
262+
var prefs = context.Call<AndroidJavaObject>("getSharedPreferences", "android.notification.test.key", 0 /* MODE_PRIVATE */);
263263
utilsClass.CallStatic("serializeNotificationIntent", prefs, intent);
264264

265265
if (inBetween != null)

0 commit comments

Comments
 (0)