From 49ae1bfb0b53c49c3ce9d0c5e4ebd93adde7cfa5 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Thu, 7 Jun 2012 11:24:23 -0400 Subject: [PATCH] Show keyboard when searching closes #104 Signed-off-by: Ricky Barrette --- .../com/TwentyCodes/android/LocationRinger/ui/SearchDialog.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/SearchDialog.java b/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/SearchDialog.java index f2e815a..173593d 100644 --- a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/SearchDialog.java +++ b/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/SearchDialog.java @@ -18,6 +18,7 @@ import android.os.Handler; import android.util.Log; import android.view.KeyEvent; import android.view.View; +import android.view.WindowManager.LayoutParams; import android.view.inputmethod.InputMethodManager; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; @@ -63,6 +64,7 @@ public class SearchDialog extends Dialog implements android.view.View.OnClickLis mAddressList.setOnItemClickListener(this); mAddress = (EditText) findViewById(R.id.address); mAddress.setOnEditorActionListener(this); + this.getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_VISIBLE); mProgress = (ProgressBar) findViewById(R.id.search_progress); mHandler = new Handler(); mContext = context;