mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Add storage service optimization to avoid manifest reads.
This commit is contained in:
committed by
Cody Henthorne
parent
fe70637140
commit
f68bb2dc88
@@ -874,7 +874,7 @@ class RegistrationViewModel : ViewModel() {
|
||||
stopwatch.split("account-restore")
|
||||
|
||||
AppDependencies.jobManager
|
||||
.startChain(StorageSyncJob())
|
||||
.startChain(StorageSyncJob.forRemoteChange())
|
||||
.then(ReclaimUsernameAndLinkJob())
|
||||
.enqueueAndBlockUntilCompletion(TimeUnit.SECONDS.toMillis(10))
|
||||
stopwatch.split("storage-sync")
|
||||
|
||||
@@ -46,7 +46,7 @@ public final class RegistrationUtil {
|
||||
}
|
||||
|
||||
AppDependencies.getJobManager().startChain(new RefreshAttributesJob())
|
||||
.then(new StorageSyncJob())
|
||||
.then(StorageSyncJob.forRemoteChange())
|
||||
.then(new DirectoryRefreshJob(false))
|
||||
.enqueue();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user