[corlib] Allow SynchronizationContext.Current to work on MfA
[mono.git] / mcs / class / corlib / System.Threading / SynchronizationContext.cs
index cb7369fb0ff1aa3179c45b56c47beb95d5e30154..3bbb7569ff35b7321013edd7bad4646b6fcef246 100644 (file)
@@ -50,7 +50,10 @@ namespace System.Threading
                public static SynchronizationContext Current
                {
                        get {
-#if NET_2_1
+#if MONODROID
+                               if (currentContext == null)
+                                       currentContext = AndroidPlatform.GetDefaultSyncContext ();
+#elif NET_2_1
                                if (currentContext == null)
                                        currentContext = new SynchronizationContext ();
 #endif