You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/08/15 09:57:20 UTC

[jira] [Commented] (CB-11214) prompt() defaultText on Android sets placeholder text instead of default text

    [ https://issues.apache.org/jira/browse/CB-11214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420806#comment-15420806 ] 

ASF subversion and git services commented on CB-11214:
------------------------------------------------------

Commit 7c4a5de3ad965fc4830c98610afc4e05968db803 in cordova-plugin-dialogs's branch refs/heads/master from [~Nikita Matrosov]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-dialogs.git;h=7c4a5de ]

CB-11677 Android: made text, entered to prompt dialog visible

CB-11214 Android: set default text instead of hint in prompt text field

 This closes #81


> prompt() defaultText on Android sets placeholder text instead of default text
> -----------------------------------------------------------------------------
>
>                 Key: CB-11214
>                 URL: https://issues.apache.org/jira/browse/CB-11214
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Dialogs
>         Environment: Android
>            Reporter: Chris Armstrong
>            Assignee: Nikita Matrosov
>              Labels: Android, easyfix, triaged
>
> On Android, a string passed for the defaultText parameter to prompt() is instead used as the placeholder text (i.e. the text shown when the box is empty). This behaviour is inconsistent with other platforms and incorrect compared to the documentation.
> The offending code (from line 282):
> {{
>     public synchronized void prompt(final String message, final String title, final JSONArray buttonLabels, final String defaultText, final CallbackContext callbackContext) {
> ...
>                 promptInput.setHint(defaultText);
> }}
> Instead of EditText.setHint(), EditText.setText() should be called with the default text.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org