diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r-- | Xamarin.Forms.Platform.Android/Forms.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Xamarin.Forms.Platform.Android/Forms.cs b/Xamarin.Forms.Platform.Android/Forms.cs index b2ded248..65bfbc4d 100644 --- a/Xamarin.Forms.Platform.Android/Forms.cs +++ b/Xamarin.Forms.Platform.Android/Forms.cs @@ -362,15 +362,7 @@ namespace Xamarin.Forms return new _IsolatedStorageFile(IsolatedStorageFile.GetUserStoreForApplication()); } - public bool IsInvokeRequired - { - get - { - using (Looper my = Looper.MyLooper()) - using (Looper main = Looper.MainLooper) - return my != main; - } - } + public bool IsInvokeRequired => !Looper.MainLooper.IsCurrentThread; public void OpenUriAction(Uri uri) { |