summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-04-06 21:17:06 -0700
committerJason Smith <jason.smith@xamarin.com>2016-04-06 21:17:06 -0700
commitca9b08deab496fed361cbec2043507a977eedf61 (patch)
treef5ed00653c589111ceb08b7b7e2595b0c7fdf6a8 /Xamarin.Forms.Platform.Android
parent4abf6102bcaac48e0853e5a30249c6ea1538f4b5 (diff)
downloadxamarin-forms-ca9b08deab496fed361cbec2043507a977eedf61.tar.gz
xamarin-forms-ca9b08deab496fed361cbec2043507a977eedf61.tar.bz2
xamarin-forms-ca9b08deab496fed361cbec2043507a977eedf61.zip
Fix issue where API23 became required by mistake
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/Forms.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/Forms.cs b/Xamarin.Forms.Platform.Android/Forms.cs
index 65bfbc4d..a089ea9a 100644
--- a/Xamarin.Forms.Platform.Android/Forms.cs
+++ b/Xamarin.Forms.Platform.Android/Forms.cs
@@ -362,7 +362,15 @@ namespace Xamarin.Forms
return new _IsolatedStorageFile(IsolatedStorageFile.GetUserStoreForApplication());
}
- public bool IsInvokeRequired => !Looper.MainLooper.IsCurrentThread;
+ public bool IsInvokeRequired
+ {
+ get
+ {
+ if ((int)Build.VERSION.SdkInt >= 23)
+ return !Looper.MainLooper.IsCurrentThread;
+ return Looper.MainLooper != Looper.MyLooper();
+ }
+ }
public void OpenUriAction(Uri uri)
{