morgan pushed to branch tor-browser-128.3.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits: cac6c9f2 by cypherpunks1 at 2024-10-21T19:15:36+00:00 fixup! [android] Rename as Tor Browser
Bug 43228: Fix the What's new text
- - - - - c7d2cb7f by cypherpunks1 at 2024-10-21T19:15:36+00:00 fixup! Bug 42195: [android] Fix "Whats new URL"
Bug 43228: Fix the What's new URL
- - - - -
2 changed files:
- mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt - mobile/android/fenix/app/src/main/res/values/static_strings.xml
Changes:
===================================== mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt ===================================== @@ -110,14 +110,10 @@ object SupportUtils { }
fun getTorWhatsNewUrl(): String { - val fullVersionName: String = BuildConfig.VERSION_NAME // e.g. "115.2.1-beta (13.5a5)" - if (!fullVersionName.contains('(') || !fullVersionName.contains(')')) { + val versionNumber = BuildConfig.VERSION_NAME.substringBefore(' ') // e.g. "13.5a5" + if (versionNumber.isEmpty()) { return "https://blog.torproject.org/" } - val versionNumber: String = fullVersionName.substring( - fullVersionName.indexOf('(') + 1, - fullVersionName.indexOf(')'), - ) // e.g. "13.5a5" val alpha: String = if (versionNumber.contains('a')) "alpha-" else "" val versionNumberNoDecimals: String = versionNumber.split('.').joinToString("") // e.g. "135a5"
===================================== mobile/android/fenix/app/src/main/res/values/static_strings.xml ===================================== @@ -5,7 +5,7 @@ <resources> <!-- Name of the application --> <string name="app_name" translatable="false">Tor Browser Dev</string> - <string name="firefox" translatable="false">Firefox</string> + <string name="firefox" translatable="false">Tor Browser</string>
<!-- Preference for developers --> <string name="preference_leakcanary" translatable="false">LeakCanary</string>
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/9037959...
tbb-commits@lists.torproject.org