summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@google.com>2012-03-22 15:51:14 -0700
committerSelim Gurun <sgurun@google.com>2012-03-22 15:51:14 -0700
commit9c2b71c70b3086784f6d26d601dc3e9212c228b3 (patch)
treeebca0a2db56b6c81b24a5fcbd98deebc7a80c235 /src
parentdb6218b771e86f77740532fc86c6ae4081eacd75 (diff)
downloadandroid_packages_apps_KeyChain-9c2b71c70b3086784f6d26d601dc3e9212c228b3.tar.gz
android_packages_apps_KeyChain-9c2b71c70b3086784f6d26d601dc3e9212c228b3.tar.bz2
android_packages_apps_KeyChain-9c2b71c70b3086784f6d26d601dc3e9212c228b3.zip
Update button status on certificate selection
Bug: 6084556 Change-Id: Ic53accced363af743f214cf6fc3995def9394c1d
Diffstat (limited to 'src')
-rw-r--r--src/com/android/keychain/KeyChainActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/keychain/KeyChainActivity.java b/src/com/android/keychain/KeyChainActivity.java
index 7d69f00..1811fbf 100644
--- a/src/com/android/keychain/KeyChainActivity.java
+++ b/src/com/android/keychain/KeyChainActivity.java
@@ -34,6 +34,7 @@ import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
+import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.ListView;
@@ -164,6 +165,13 @@ public class KeyChainActivity extends Activity {
lv.setAdapter(adapter);
builder.setView(lv);
+ lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
+
+ public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
+ lv.setItemChecked(position, true);
+ }
+ });
+
boolean empty = adapter.mAliases.isEmpty();
int negativeLabel = empty ? android.R.string.cancel : R.string.deny_button;
builder.setNegativeButton(negativeLabel, new DialogInterface.OnClickListener() {