use KeyserverSyncWorker for updating keys in the foreground, too

This commit is contained in:
Vincent Breitmoser
2018-06-14 18:16:40 +02:00
parent b854331daa
commit 8bf71b893c
7 changed files with 115 additions and 129 deletions

View File

@@ -103,9 +103,6 @@ public class KeychainApplication extends Application {
TlsCertificatePinning.addPinnedCertificate("keyserver.ubuntu.com", getAssets(), "DigiCertGlobalRootCA.cer");
KeyserverSyncManager.updateKeyserverSyncSchedule(this, Constants.DEBUG_KEYSERVER_SYNC);
if (Constants.DEBUG_KEYSERVER_SYNC) {
KeyserverSyncManager.runSyncNow();
}
TemporaryFileProvider.scheduleCleanupImmediately();
}