cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valerio (JIRA)" <>
Subject [jira] [Commented] (CB-8292) notification.prompt has invisible white text for user input
Date Wed, 08 Jun 2016 15:22:21 GMT


Valerio commented on CB-8292:

search for "public synchronized void prompt"

change "promptInput.setHint(defaultText);" into "promptInput.setText(defaultText);"
add after previuos line   "promptInput.setTextColor(0xff444444);"

work for me on android 6.0. and 5.1.1

hitText generate a problem,not move cursor and i can't delete text into it

> notification.prompt has invisible white text for user input
> -----------------------------------------------------------
>                 Key: CB-8292
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Dialogs
>    Affects Versions: 3.5.0
>         Environment:, with core plugins from source= ""
> (Sorry I can't verify if this is just a problem or an issue with the
plugin, but from the code diffs, seems it is the plugin.)
>            Reporter: Steve Bohrer
>            Priority: Minor
>         Attachments: Screenshot_2016-03-11-13-21-39.png, Screenshot_2016-03-11-13-21-39.png
> In 0.2.9 of the core dialogs plugin, the change note says: "When you don't specify a
theme the platform defaults back to gingerbread styling. By applying the device default theme
it will change it to the new (and much nicer looking) styles on newer devices."
> However, the EditText item is not changed, so user-entered text is still in the gingerbread
styling, which results in white text on the new white dialog background. This issue persists
through dialogs plugin 0.2.11. (Note that the default prompt string is drawn with the proper
font, but when the user enters text, it is white.)
> From the diffs at;a=commitdiff;h=90ad94c3309619b9e629ccf416d1a787df7c3d0e
> It is clear that AlertDialog.Builder is called with the new default style, but the EditText
item is unchanged.
> Here's the excerpt of the relevant diffs:
> @@ -270,7 +270,7 @@ public class Notification extends CordovaPlugin {
>              public void run() {
>                  final EditText promptInput =  new EditText(cordova.getActivity());
>                  promptInput.setHint(defaultText);
> -                AlertDialog.Builder dlg = new AlertDialog.Builder(cordova.getActivity());
> +                AlertDialog.Builder dlg = new AlertDialog.Builder(cordova.getActivity(),

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message