try to fix race condition with empty trust ui

This commit is contained in:
Daniel Gultsch 2018-06-30 13:35:05 +02:00
parent 3218ca3fe3
commit 9408dd597a
1 changed files with 7 additions and 3 deletions

View File

@ -333,9 +333,13 @@ public class TrustKeysActivity extends OmemoActivity implements OnKeyStatusUpdat
processFingerprintVerification(this.mPendingFingerprintVerificationUri);
this.mPendingFingerprintVerificationUri = null;
} else {
reloadFingerprints();
final boolean keysToTrust = reloadFingerprints();
if (keysToTrust || hasPendingKeyFetches() || hasNoOtherTrustedKeys()) {
populateView();
invalidateOptionsMenu();
} else {
finishOk(false);
}
}
}
}