Jean_D 1 Posted January 11 We have an app for Android (originally created using the Delphi 11 but, now, maintained using Delphi 12). After a fresh install, the login process will behave properly. However, after logging out, any attempt to log back in will have the 'caret' not aligned with the 'cursor' (see below). By the way, both the username and pin are TEdit. How do I force the 'caret' to be aligned with the 'cursor?' Then, once in a while, if we tap the username field in order to enter a new value, we get the following error: Has anybody else experienced this strange behavior/error and found a way to solve it? By the way, none of these issues were present under Delphi 11. Share this post Link to post
Dave Nottage 557 Posted January 11 6 minutes ago, Jean_D said: Then, once in a while, if we tap the username field in order to enter a new value, we get the following error: See this report: https://quality.embarcadero.com/browse/RSP-43383 Share this post Link to post
Jean_D 1 Posted January 11 Thanks for the link. It appears to be promising. I was able to 'patch' the 'FMX.Platform.UI.Android.pas' file. If I replace the original file with its patched version, how do I 'force' the recreation of its '.dcu' counterparts? Share this post Link to post
JonRobertson 72 Posted January 11 Copy your patched FMX.Platform.UI.Android.pas to the same folder containing your project. You could also add it to the project. Delphi will compile and use the one in your project folder rather than the version shipped with Delphi. If you need to use this for multiple projects, or later need to patch another FMX unit, you could create a folder named something like FMXOverrides. I don't use FMX but I've had a VCLOverrides folder for years. Share this post Link to post