summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/PlatformRenderer.cs
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-03-26 23:29:45 -0700
committerRui Marinho <me@ruimarinho.net>2016-03-29 18:15:11 +0100
commit11dc5a5aca2842346759022fc405e89d1d0132b1 (patch)
treec587604fc9805b677e94c749788d011a36ce0a41 /Xamarin.Forms.Platform.Android/PlatformRenderer.cs
parent0e03738adefaa1accd733e817d7730f2c9b82534 (diff)
downloadxamarin-forms-11dc5a5aca2842346759022fc405e89d1d0132b1.tar.gz
xamarin-forms-11dc5a5aca2842346759022fc405e89d1d0132b1.tar.bz2
xamarin-forms-11dc5a5aca2842346759022fc405e89d1d0132b1.zip
[A]Resolve issue where calling Focus in an unfocus event would fail
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39702 without API change. This does cause android to always indicate a focus event was succesful now because we have no way of knowing ahead of time if it will succeed or fail. That said we always already indicated that unfocus was successful because android has no way of reporting such a failure.
Diffstat (limited to 'Xamarin.Forms.Platform.Android/PlatformRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/PlatformRenderer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/PlatformRenderer.cs b/Xamarin.Forms.Platform.Android/PlatformRenderer.cs
index 4fbc0293..f31b0702 100644
--- a/Xamarin.Forms.Platform.Android/PlatformRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/PlatformRenderer.cs
@@ -61,7 +61,7 @@ namespace Xamarin.Forms.Platform.Android
break;
Context.HideKeyboard(currentView);
- RequestFocus();
+ ((Activity)Context).Window.DecorView.ClearFocus();
} while (false);
return result;