Skip to content

Commit 7269867

Browse files
authored
CU-868g5cm0m: Fix Compile Error (#206)
### TL;DR Fixed syntax errors in the AdminAppMessengerManager's callback methods. ### What changed? - Fixed two syntax errors in the `AdminAppMessengerManager.cs` file where lambda expressions were incorrectly defined with `0) =>` instead of `() =>` - Incremented the package version from 1.0.43 to 1.0.44 in `package.json`​ Closes #205
1 parent 8730ba0 commit 7269867

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Assets/MXR.SDK/Runtime/Android/AdminAppMessengerManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public AdminAppMessengerListener(AdminAppMessengerManager _messenger)
116116
/// <param name="bound">New bound status</param>
117117
public void onBindStatusToAdminAppChanged(bool bound) {
118118
// Dispatch to Unity main thread since this is called from Android main thread
119-
Dispatcher.RunOnMainThread(0) => {
119+
Dispatcher.RunOnMainThread(() => {
120120
if (messenger.IsBoundToService != bound) {
121121
Debug.unityLogger.Log(LogType.Log, "AdminAppMessengerManager bind state changed to: " + bound);
122122
messenger.IsBoundToService = bound;
@@ -132,7 +132,7 @@ public void onBindStatusToAdminAppChanged(bool bound) {
132132
/// <param name="json">Message data</param>
133133
public void onMessageFromAdminApp(int what, string json) {
134134
// Dispatch to Unity main thread since this is called from Android main thread
135-
Dispatcher.RunOnMainThread(0) => {
135+
Dispatcher.RunOnMainThread(() => {
136136
try {
137137
messenger.OnMessageFromAdminApp?.Invoke(what, json);
138138
} catch (Exception ex) {

Assets/MXR.SDK/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.mxr.unity.sdk",
3-
"version": "1.0.43",
3+
"version": "1.0.44",
44
"displayName": "ManageXR Unity SDK",
55
"description": "ManageXR Android and Editor System and Utilities for integrating with the ManageXR MDM platform.",
66
"unity": "2019.4",

0 commit comments

Comments
 (0)