clairehurst pushed to branch tor-browser-140.2.0esr-15.0-1 at The Tor Project / 
Applications / Tor Browser


Commits:
89359823 by clairehurst at 2025-08-28T11:03:40-07:00
fixup! TB 40041 [android]: Implement Tor Network Settings

Better fix for #44036 Crash on opening "Search Settings" on android

- - - - -


1 changed file:

- 
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt


Changes:

=====================================
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt
=====================================
@@ -12,6 +12,7 @@ import android.os.Build
 import android.os.Bundle
 import android.os.Handler
 import android.os.Looper
+import android.os.StrictMode
 import android.util.Log
 import android.view.LayoutInflater
 import android.view.View
@@ -37,7 +38,6 @@ import kotlinx.coroutines.CoroutineScope
 import kotlinx.coroutines.Dispatchers
 import kotlinx.coroutines.delay
 import kotlinx.coroutines.launch
-import kotlinx.coroutines.runBlocking
 import mozilla.components.browser.state.state.selectedOrDefaultSearchEngine
 import mozilla.components.concept.engine.Engine
 import mozilla.components.concept.sync.AccountObserver
@@ -191,7 +191,7 @@ class SettingsFragment : PreferenceFragmentCompat(), 
UserInteractionHandler {
     }
 
     override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: 
String?) {
-        runBlocking(context = Dispatchers.IO) {
+        
requireContext().components.strictMode.resetAfter(StrictMode.allowThreadDiskReads())
 {
             setPreferencesFromResource(R.xml.preferences, rootKey)
         }
     }



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/893598234f5d3f03e1c5327ea3499b26786b364e

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/893598234f5d3f03e1c5327ea3499b26786b364e
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to