More beautifyKeyIdWithPrefix

This commit is contained in:
Dominik Schürmann 2014-10-03 03:16:34 +02:00
parent 2c22a4c2f6
commit 4cfc7feb43
2 changed files with 2 additions and 3 deletions

View File

@ -122,8 +122,7 @@ public abstract class DecryptFragment extends Fragment {
if (userIdSplit[1] != null) { if (userIdSplit[1] != null) {
mUserIdRest.setText(userIdSplit[1]); mUserIdRest.setText(userIdSplit[1]);
} else { } else {
mUserIdRest.setText(getString(R.string.label_key_id) + ": " mUserIdRest.setText(KeyFormattingUtils.beautifyKeyIdWithPrefix(getActivity(), mSignatureKeyId));
+ KeyFormattingUtils.convertKeyIdToHex(mSignatureKeyId));
} }
switch (signatureResult.getStatus()) { switch (signatureResult.getStatus()) {

View File

@ -128,7 +128,7 @@ abstract public class SelectKeyCursorAdapter extends CursorAdapter {
} }
long masterKeyId = cursor.getLong(mIndexMasterKeyId); long masterKeyId = cursor.getLong(mIndexMasterKeyId);
h.keyId.setText(KeyFormattingUtils.convertKeyIdToHex(masterKeyId)); h.keyId.setText(KeyFormattingUtils.beautifyKeyIdWithPrefix(mContext, masterKeyId));
boolean enabled = true; boolean enabled = true;
if (cursor.getInt(mIndexRevoked) != 0) { if (cursor.getInt(mIndexRevoked) != 0) {