use TextUtils.isEmpty() - a better solution!

This commit is contained in:
n8fr8 2015-09-10 21:18:04 -04:00
parent b6939dcce4
commit 988f5dbfdc

View File

@ -282,7 +282,7 @@ public class RepoUpdater {
* actually in the index.jar itself. If no fingerprint, just store the
* signing certificate */
boolean trustNewSigningCertificate = false;
if (repo.fingerprint == null || repo.fingerprint.length() == 0) {
if (repo.fingerprint == null || TextUtils.isEmpty(repo.fingerprint)) {
// no info to check things are valid, so just Trust On First Use
trustNewSigningCertificate = true;
} else {