aboutsummaryrefslogtreecommitdiffstats
path: root/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/widget/KeyListAdapter.java
diff options
context:
space:
mode:
authorAsh Hughes <spirit.returned@googlemail.com>2013-03-18 16:07:34 +0000
committerAsh Hughes <spirit.returned@googlemail.com>2013-03-18 16:07:34 +0000
commit12d6cfefd7f36d90780d0eea6863311dd5c2ae2d (patch)
treeac9043c5c7e6a7737591add838bb8d150c639b0b /OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/widget/KeyListAdapter.java
parent2ccd3796c4c6bae5fb587f031dcf848a2ad72ff0 (diff)
downloadopen-keychain-12d6cfefd7f36d90780d0eea6863311dd5c2ae2d.tar.gz
open-keychain-12d6cfefd7f36d90780d0eea6863311dd5c2ae2d.tar.bz2
open-keychain-12d6cfefd7f36d90780d0eea6863311dd5c2ae2d.zip
change how empty private cheks happen, speeds things up
Diffstat (limited to 'OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/widget/KeyListAdapter.java')
-rw-r--r--OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/widget/KeyListAdapter.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/widget/KeyListAdapter.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/widget/KeyListAdapter.java
index 61ca0e9d0..9b5941706 100644
--- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/widget/KeyListAdapter.java
+++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/widget/KeyListAdapter.java
@@ -159,13 +159,8 @@ public class KeyListAdapter extends CursorTreeAdapter {
}
ImageView signIcon = (ImageView) view.findViewById(R.id.ic_signKey);
- boolean privateEmpty = false; //Don't show signing icon for master keys without private keys
- //TODO: does this need to be done for encrypting icon? Does anyone use master key for encrypt?
- if (cursor.getInt(cursor.getColumnIndex(Keys.IS_MASTER_KEY)) == 1) {
- privateEmpty = PgpHelper.isSecretKeyPrivateEmpty(context,
- cursor.getLong(cursor.getColumnIndex(Keys.KEY_ID)));
- }
- if (privateEmpty || cursor.getInt(cursor.getColumnIndex(Keys.CAN_SIGN)) != 1) {
+
+ if (cursor.getInt(cursor.getColumnIndex(Keys.CAN_SIGN)) != 1) {
signIcon.setVisibility(View.GONE);
} else {
signIcon.setVisibility(View.VISIBLE);