[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.3.0esr-14.0-1] 2 commits: fixup! [android] Rename as Tor Browser
morgan (@morgan)
git at gitlab.torproject.org
Mon Oct 21 19:16:36 UTC 2024
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/9037959499cf76fd3c25f8eea08f9bef5cd2e903...c7d2cb7f7bc919c768fb693010813e5c51b68591
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/9037959499cf76fd3c25f8eea08f9bef5cd2e903...c7d2cb7f7bc919c768fb693010813e5c51b68591
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20241021/6f8aeb16/attachment-0001.htm>
More information about the tor-commits
mailing list