Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ open class BrowserApplication : Application() {
WebExtensionSupport.initialize(
runtime = components.core.engine,
store = components.core.store,
onNewTabOverride = { _, engineSession, url ->
onNewTabOverride = { _, engineSession, url, selected ->
val tabId = components.useCases.tabsUseCases.addTab(
url = url,
selectTab = true,
selectTab = selected,
engineSession = engineSession,
)
tabId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
val preferenceKey = requireContext().getPreferenceKey(it.prefId())
(findPreference<CheckBoxPreference>(preferenceKey) as CheckBoxPreference).apply {
setOnPreferenceChangeListener { _, newValue ->
updateSyncEngineState(context, it, newValue as Boolean)
updateSyncEngineState(it, newValue as Boolean)
true
}
}
Expand Down Expand Up @@ -198,13 +198,11 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
.setPackage(context.packageName)

private fun updateSyncEngineState(
context: Context,
engine: SyncEngine,
newState: Boolean,
) {
SyncEnginesStorage(context).setStatus(engine, newState)
CoroutineScope(Dispatchers.Main).launch {
requireComponents.backgroundServices.accountManager.syncNow(SyncReason.EngineChange)
requireComponents.backgroundServices.accountManager.setEngineEnabled(engine, newState)
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
# Android Components
android-components = "153.0.20260522132823"
android-components = "153.0.20260526143706"

# AGP
android-gradle-plugin = "9.2.1"
Expand Down