Skip to content
Snippets Groups Projects
Commit e59de0a3 authored by Dan Ballard's avatar Dan Ballard Committed by Pier Angelo Vendrame
Browse files

fixup! [android] Implement Android-native Connection Assist UI

Bug 41188: Add staging event wiring
parent ae335fdb
Branches
Tags
1 merge request!1500TB 43415: Rebased onto 134.0a1
......@@ -173,6 +173,7 @@ import org.mozilla.fenix.compose.snackbar.SnackbarState
import org.mozilla.fenix.compose.snackbar.Snackbar
import org.mozilla.fenix.tor.UrlQuickLoadViewModel
import org.mozilla.geckoview.TorAndroidIntegration
import org.mozilla.geckoview.TorConnectStage
/**
* The main activity of the application. The application is primarily a single Activity (this one)
......@@ -1528,6 +1529,7 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, TorAn
}
override fun onBootstrapStateChange(state: String) = Unit
override fun onBootstrapStageChange(stage: TorConnectStage) = Unit
override fun onBootstrapProgress(progress: Double, hasWarnings: Boolean) = Unit
override fun onBootstrapComplete() {
if (settings().useHtmlConnectionUi) {
......
......@@ -5,6 +5,7 @@ import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import org.mozilla.fenix.ext.components
import org.mozilla.geckoview.TorAndroidIntegration.BootstrapStateChangeListener
import org.mozilla.geckoview.TorConnectStage
class TorBootstrapProgressViewModel(
application: Application,
......@@ -27,6 +28,7 @@ class TorBootstrapProgressViewModel(
}
override fun onBootstrapStateChange(state: String?) {}
override fun onBootstrapStageChange(stage: TorConnectStage) = Unit
override fun onBootstrapProgress(progress: Double, hasWarnings: Boolean) {
this.progress.value = progress.toInt()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment