White text Dialogs Prompt (android)

Hello!

We are developing an app using cordova.plugin-dialogs, on iOS works fine, but on Android the input text has white color, like the background, so we are unable to see what we write, has anyone face this issue already?

Thanks!

Hmmm :thinking: I’ve never seen this before. Would you be able to share a screen shot and some code?

Here you have the issue I mean: https://issues.apache.org/jira/browse/CB-8292?jql=project%20%3D%20CB%20AND%20status%20in%20(Open%2C%20"In%20Progress"%2C%20Reopened)%20AND%20resolution%20%3D%20Unresolved%20AND%20component%20%3D%20"Plugin%20Dialogs"%20ORDER%20BY%20priority%20DESC%2C%20summary%20ASC%2C%20updatedDate%20DESC

You can see two images as well, my current workaround is to use the dark theme which changes the background color, but it breaks current android style :confused:

@mhartington any update or workaround to get LIGHT theme?

look for this file
platforms/android/src/org/apache/cordova/dialogs/Notification.java

then change promptInput.setHintTextColor(0xff444444); to //promptInput.setHintTextColor(0xff444444);

then add this line
promptInput.setTextColor(0xff444444);

1 Like

There is no line with setHintTextColor()

Anyhow I added promptInput.setTextColor(0xff444444); to Notification::prompt()

It works. Thanks.

1 Like