Fix a no-result corner case, and make verifications clickable

This commit is contained in:
Tim Bray 2014-11-07 21:07:10 -08:00
parent 4929e346a2
commit 3c19e6cfc1

View File

@ -284,7 +284,7 @@ public class ViewKeyTrustFragment extends LoaderFragment implements
@Override
protected void onPostExecute(ResultPage result) {
super.onPostExecute(result);
if (result.mHeader == null) {
if (result.mProofs.isEmpty()) {
result.mHeader = getActivity().getString(R.string.key_trust_no_cloud_evidence);
}
@ -425,6 +425,7 @@ public class ViewKeyTrustFragment extends LoaderFragment implements
}
mProofVerifyHeader.setVisibility(View.VISIBLE);
mProofVerifyDetail.setVisibility(View.VISIBLE);
mProofVerifyDetail.setMovementMethod(LinkMovementMethod.getInstance());
mProofVerifyDetail.setText(ssb);
}
}