From 2787a960d8cc9501523722e2ed2f4c8cc7065cb5 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Sat, 16 Jul 2011 15:07:34 -0500 Subject: [PATCH] Issue #153: Display default value in prompt(). --- framework/src/com/phonegap/DroidGap.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index eb055e87..a22622ba 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -921,6 +921,9 @@ public class DroidGap extends PhonegapActivity { AlertDialog.Builder dlg = new AlertDialog.Builder(this.ctx); dlg.setMessage(message); final EditText input = new EditText(this.ctx); + if (defaultValue != null) { + input.setText(defaultValue); + } dlg.setView(input); dlg.setCancelable(false); dlg.setPositiveButton(android.R.string.ok,