corona icon indicating copy to clipboard operation
corona copied to clipboard

[Android]: Incorrect work of native.newTextBox

Open stalker-66 opened this issue 4 years ago • 2 comments

After enabling dark mode, native.newTextBox color does not work correctly. Even if the setTextColor method has been called, the text color remains to be white (no focus), and turns black during editing (is focus).

The bug is reproduced if the parameter .hasBackground = false is applied to native.newTextBox. The bug appears when the application is minimized and deployed.

Device: Redmi Note 9 Pro OS: Android 10

The strange behavior can be seen in the video - https://youtu.be/cPbqqFtoLS8 Bug project - https://drive.google.com/file/d/1OvxPkYIm_elSyKoXD_46kTm5BwtCpvR4/view?usp=sharing

stalker-66 avatar Jul 08 '21 16:07 stalker-66

I ran into a problem trying to reproduce this issue. I tested on 3 devices, android 9, 10 and 11 (this one on simulator) and all of them worked fine.

Shchvova avatar Jul 19 '21 08:07 Shchvova

If there are no problems with the code, then the problem is in the Chinese device itself.

stalker-66 avatar Jul 19 '21 09:07 stalker-66