diff options
author | xSooDx <soodsaurabh95@gmail.com> | 2015-08-04 16:24:12 +0530 |
---|---|---|
committer | xSooDx <soodsaurabh95@gmail.com> | 2015-08-04 16:24:12 +0530 |
commit | ee5343fcb63952469ade90ae005424956aa59aa3 (patch) | |
tree | fa92894cd8e06da49de0c55438ae9e8ba675e46f /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui | |
parent | 7c15dc0b892fe3f4515f1bfd242cd6f44f774c51 (diff) | |
download | open-keychain-ee5343fcb63952469ade90ae005424956aa59aa3.tar.gz open-keychain-ee5343fcb63952469ade90ae005424956aa59aa3.tar.bz2 open-keychain-ee5343fcb63952469ade90ae005424956aa59aa3.zip |
renamed the insertLinks() method to formatSpannableString() and added comment about its functionality
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyTrustFragment.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyTrustFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyTrustFragment.java index a15ec4151..092ab40d6 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyTrustFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyTrustFragment.java @@ -256,7 +256,7 @@ public class ViewKeyTrustFragment extends LoaderFragment implements i++; } appendProofLinks(ssb, fingerprint, proofsFor[i]); - proofList.add(insertLinks(ssb,getProofNarrative(proofType))); + proofList.add(formatSpannableString(ssb, getProofNarrative(proofType))); } } @@ -266,7 +266,10 @@ public class ViewKeyTrustFragment extends LoaderFragment implements return new ResultPage(getString(R.string.key_trust_results_prefix), proofList); } - private SpannableStringBuilder insertLinks(SpannableStringBuilder proofLinks,String proofType){ + private SpannableStringBuilder formatSpannableString(SpannableStringBuilder proofLinks,String proofType){ + //Formatting SpannableStringBuilder with String.format() causes the links to stop working. + //This method is to insert the links while reserving the links + SpannableStringBuilder ssb = new SpannableStringBuilder(); ssb.append(proofType); if(proofType.contains("%s")){ |