1
0
Fork 0

Remove @UseExperimental for usages of the flow api

master
Arturo Mejia 2020-03-17 15:54:52 -04:00 committed by Emily Kager
parent 4425e7139e
commit e977486809
3 changed files with 0 additions and 6 deletions

View File

@ -17,7 +17,6 @@ import kotlinx.android.synthetic.main.fragment_add_ons_management.view.*
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
@ -57,7 +56,6 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management),
showToolbar(getString(R.string.preferences_addons))
}
@UseExperimental(ExperimentalCoroutinesApi::class)
override fun onStart() {
super.onStart()
findPreviousDialogFragment()?.let { dialog ->

View File

@ -15,7 +15,6 @@ import androidx.navigation.Navigation
import androidx.navigation.findNavController
import kotlinx.android.synthetic.main.fragment_installed_add_on_details.view.*
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.map
@ -51,7 +50,6 @@ class InstalledAddonDetailsFragment : Fragment() {
}
}
@UseExperimental(ExperimentalCoroutinesApi::class)
override fun onStart() {
super.onStart()
scope = requireContext().components.core.store.flowScoped { flow ->

View File

@ -4,7 +4,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.fenix
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.collect
import mozilla.components.lib.state.ext.flowScoped
import mozilla.components.support.base.log.logger.Logger
@ -17,7 +16,6 @@ class MigrationTelemetryListener(
private val metrics: MetricController,
private val store: MigrationStore
) {
@UseExperimental(ExperimentalCoroutinesApi::class)
fun start() {
// Observe for migration completed.
store.flowScoped { flow ->