aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg/SecretKeyListActivity.java
diff options
context:
space:
mode:
authorsenecaso <senecaso@bertha>2011-10-17 10:07:37 +0900
committersenecaso <senecaso@bertha>2011-10-17 10:07:37 +0900
commitdebb90409a0a90ce9351c83e42cb72f8935bacb1 (patch)
tree7e61de006c0cad43019698f7e2267285f550e198 /src/org/thialfihar/android/apg/SecretKeyListActivity.java
parent6f2333b7d3ff892697e993e4af2053a695f19402 (diff)
downloadopen-keychain-debb90409a0a90ce9351c83e42cb72f8935bacb1.tar.gz
open-keychain-debb90409a0a90ce9351c83e42cb72f8935bacb1.tar.bz2
open-keychain-debb90409a0a90ce9351c83e42cb72f8935bacb1.zip
-implementation of "--send-key"
-implementation of "--sign-key" -partial implementation of exchanging/verifying keys via QR Code
Diffstat (limited to 'src/org/thialfihar/android/apg/SecretKeyListActivity.java')
-rw-r--r--src/org/thialfihar/android/apg/SecretKeyListActivity.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/org/thialfihar/android/apg/SecretKeyListActivity.java b/src/org/thialfihar/android/apg/SecretKeyListActivity.java
index d3c89ddc9..4689db982 100644
--- a/src/org/thialfihar/android/apg/SecretKeyListActivity.java
+++ b/src/org/thialfihar/android/apg/SecretKeyListActivity.java
@@ -28,6 +28,8 @@ import android.widget.ExpandableListView;
import android.widget.ExpandableListView.ExpandableListContextMenuInfo;
import android.widget.ExpandableListView.OnChildClickListener;
+import com.google.zxing.integration.android.IntentIntegrator;
+
public class SecretKeyListActivity extends KeyListActivity implements OnChildClickListener {
@Override
public void onCreate(Bundle savedInstanceState) {
@@ -80,6 +82,7 @@ public class SecretKeyListActivity extends KeyListActivity implements OnChildCli
menu.add(0, Id.menu.edit, 0, R.string.menu_editKey);
menu.add(0, Id.menu.export, 1, R.string.menu_exportKey);
menu.add(0, Id.menu.delete, 2, R.string.menu_deleteKey);
+ menu.add(0, Id.menu.share, 2, R.string.menu_share);
}
}
@@ -100,6 +103,14 @@ public class SecretKeyListActivity extends KeyListActivity implements OnChildCli
return true;
}
+ case Id.menu.share: {
+ mSelectedItem = groupPosition;
+
+ long keyId = ((KeyListAdapter) mList.getExpandableListAdapter()).getGroupId(mSelectedItem);
+ String msg = keyId + "," + Apg.getFingerPrint(keyId);;
+ IntentIntegrator.shareText(this, msg);
+ }
+
default: {
return super.onContextItemSelected(menuItem);
}
@@ -169,7 +180,7 @@ public class SecretKeyListActivity extends KeyListActivity implements OnChildCli
}
break;
}
-
+
default: {
break;
}