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

2016-05-05 Thread Chris Armstrong (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Armstrong updated CB-11214:
-
Description: 
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.


  was:
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.



> 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
>
> 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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



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

2016-05-05 Thread Chris Armstrong (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Armstrong updated CB-11214:
-
Description: 
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.


  was:
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.



> 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
>
> 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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



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

2016-05-05 Thread Chris Armstrong (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Armstrong updated CB-11214:
-
Description: 
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.


  was:
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.



> 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
>
> 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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



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

2016-05-05 Thread Chris Armstrong (JIRA)
Chris Armstrong created CB-11214:


 Summary: 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


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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org