use TextUtils.isEmpty() - a better solution!
This commit is contained in:
parent
b6939dcce4
commit
988f5dbfdc
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user