From: Stephane Delcroix Date: Mon, 14 Jan 2019 11:35:29 +0000 (+0100) Subject: fix merge X-Git-Tag: accepted/tizen/5.5/unified/20200421.150457~553 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=590e03f661038bae22caf27e41bd58444a87e8dd;p=platform%2Fcore%2Fcsapi%2Fxsf.git fix merge --- diff --git a/Xamarin.Forms.Platform.Android/Renderers/EntryRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/EntryRenderer.cs index 13f28e4..8e422d2 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/EntryRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/EntryRenderer.cs @@ -34,6 +34,13 @@ namespace Xamarin.Forms.Platform.Android } protected override EditText EditText => Control; + + protected override void UpdateIsReadOnly() + { + base.UpdateIsReadOnly(); + bool isReadOnly = !Element.IsReadOnly; + Control.SetCursorVisible(isReadOnly); + } } public abstract class EntryRendererBase : ViewRenderer, ITextWatcher, TextView.IOnEditorActionListener @@ -462,13 +469,12 @@ namespace Xamarin.Forms.Platform.Android } } - void UpdateIsReadOnly() + protected virtual void UpdateIsReadOnly() { bool isReadOnly = !Element.IsReadOnly; Control.FocusableInTouchMode = isReadOnly; Control.Focusable = isReadOnly; - Control.SetCursorVisible(isReadOnly); } } }