Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 58224200B50 for ; Fri, 15 Jul 2016 07:31:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 56A4D160A85; Fri, 15 Jul 2016 05:31:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9CF55160A63 for ; Fri, 15 Jul 2016 07:31:21 +0200 (CEST) Received: (qmail 12410 invoked by uid 500); 15 Jul 2016 05:31:20 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 12399 invoked by uid 99); 15 Jul 2016 05:31:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2016 05:31:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 73EAA2C02A5 for ; Fri, 15 Jul 2016 05:31:20 +0000 (UTC) Date: Fri, 15 Jul 2016 05:31:20 +0000 (UTC) From: "sanjeewa kumara (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11214) prompt() defaultText on Android sets placeholder text instead of default text MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 15 Jul 2016 05:31:22 -0000 [ https://issues.apache.org/jira/browse/CB-11214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15378883#comment-15378883 ] sanjeewa kumara commented on CB-11214: -------------------------------------- I would like to work on this. Can you give me more resources? > 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 > 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