summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorChris King <kingces95@gmail.com>2017-02-17 12:04:50 -0800
committerRui Marinho <me@ruimarinho.net>2017-02-21 10:24:12 +0000
commit217a59e5873b1a4850719c26b11b853270df70ce (patch)
tree58071c61764cf9eee170bfad9e6408b2bd5e9cb0 /Xamarin.Forms.Platform.Android
parent5e84299ac3f01bed5f5a69313dd3a1fe2598e41a (diff)
downloadxamarin-forms-217a59e5873b1a4850719c26b11b853270df70ce.tar.gz
xamarin-forms-217a59e5873b1a4850719c26b11b853270df70ce.tar.bz2
xamarin-forms-217a59e5873b1a4850719c26b11b853270df70ce.zip
update IEditorController callsites
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs
index 77c71450..1f2c51b6 100644
--- a/Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs
@@ -17,6 +17,8 @@ namespace Xamarin.Forms.Platform.Android
AutoPackage = false;
}
+ IEditorController ElementController => Element;
+
void ITextWatcher.AfterTextChanged(IEditable s)
{
}
@@ -54,7 +56,7 @@ namespace Xamarin.Forms.Platform.Android
edit.AddTextChangedListener(this);
edit.OnBackKeyboardPressed += (sender, args) =>
{
- Element.SendCompleted();
+ ElementController.SendCompleted();
edit.ClearFocus();
};
}
@@ -98,7 +100,7 @@ namespace Xamarin.Forms.Platform.Android
internal override void OnNativeFocusChanged(bool hasFocus)
{
if (Element.IsFocused && !hasFocus) // Editor has requested an unfocus, fire completed event
- Element.SendCompleted();
+ ElementController.SendCompleted();
}
void UpdateFont()