[fenix] Use Mozilla Android Components 10.0.0

pull/600/head
Jonathan Almeida 5 years ago committed by Jonathan Almeida
parent 528b8e0d5f
commit 584103cdf6

@ -89,7 +89,7 @@ open class HomeActivity : AppCompatActivity(), ShareFragment.TabsSharedCallback
// If we're authenticated, kick-off a sync and a device state refresh.
accountManager.authenticatedAccount()?.let {
accountManager.syncNowAsync(startup = true)
it.deviceConstellation().refreshDeviceStateAsync().await()
it.deviceConstellation().pollForEventsAsync().await()
}
}
}

@ -161,11 +161,12 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
requireComponents.analytics.metrics.track(Event.SyncAccountSyncNow)
// Trigger a sync.
requireComponents.backgroundServices.accountManager.syncNowAsync().await()
// Poll for device events.
// Poll for device events & update devices.
accountManager.authenticatedAccount()
?.deviceConstellation()
?.refreshDeviceStateAsync()
?.await()
?.deviceConstellation()?.run {
refreshDevicesAsync().await()
pollForEventsAsync().await()
}
}
}

@ -34,7 +34,7 @@ object Versions {
const val androidx_work = "2.0.1"
const val google_material = "1.1.0-alpha07"
const val mozilla_android_components = "9.0.0-SNAPSHOT"
const val mozilla_android_components = "10.0.0-SNAPSHOT"
// Note that android-components also depends on application-services,
// and in fact is our main source of appservices-related functionality.
// The version number below tracks the application-services version

Loading…
Cancel
Save