|
|
@ -110,7 +110,7 @@ open class HomeActivity : AppCompatActivity() {
|
|
|
|
override fun onResume() {
|
|
|
|
override fun onResume() {
|
|
|
|
super.onResume()
|
|
|
|
super.onResume()
|
|
|
|
|
|
|
|
|
|
|
|
unsetOpenLinksInAPrivateTab()
|
|
|
|
unsetOpenLinksInAPrivateTabIfNecessary()
|
|
|
|
|
|
|
|
|
|
|
|
lifecycleScope.launch {
|
|
|
|
lifecycleScope.launch {
|
|
|
|
with(components.backgroundServices) {
|
|
|
|
with(components.backgroundServices) {
|
|
|
@ -125,7 +125,7 @@ open class HomeActivity : AppCompatActivity() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private fun unsetOpenLinksInAPrivateTab() {
|
|
|
|
private fun unsetOpenLinksInAPrivateTabIfNecessary() {
|
|
|
|
// Toggle off the open_link_in_private_tab pref if we are no longer set as the default browser
|
|
|
|
// Toggle off the open_link_in_private_tab pref if we are no longer set as the default browser
|
|
|
|
// We do this on a separate thread to alleviate performance issues
|
|
|
|
// We do this on a separate thread to alleviate performance issues
|
|
|
|
val weakReferenceContext = WeakReference(this)
|
|
|
|
val weakReferenceContext = WeakReference(this)
|
|
|
|