projects
/
platform
/
upstream
/
xamarin-forms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4abf610
)
Fix issue where API23 became required by mistake
author
Jason Smith
<jason.smith@xamarin.com>
Thu, 7 Apr 2016 04:17:06 +0000
(21:17 -0700)
committer
Jason Smith
<jason.smith@xamarin.com>
Thu, 7 Apr 2016 04:17:06 +0000
(21:17 -0700)
Xamarin.Forms.Platform.Android/Forms.cs
patch
|
blob
|
history
diff --git
a/Xamarin.Forms.Platform.Android/Forms.cs
b/Xamarin.Forms.Platform.Android/Forms.cs
index
65bfbc4
..
a089ea9
100644
(file)
--- 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)
{