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
-
c7d2cb7f
by cypherpunks1 at 2024-10-21T19:15:36+00:00
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:
... | ... | @@ -110,14 +110,10 @@ object SupportUtils { |
110 | 110 | }
|
111 | 111 | |
112 | 112 | fun getTorWhatsNewUrl(): String {
|
113 | - val fullVersionName: String = BuildConfig.VERSION_NAME // e.g. "115.2.1-beta (13.5a5)"
|
|
114 | - if (!fullVersionName.contains('(') || !fullVersionName.contains(')')) {
|
|
113 | + val versionNumber = BuildConfig.VERSION_NAME.substringBefore(' ') // e.g. "13.5a5"
|
|
114 | + if (versionNumber.isEmpty()) {
|
|
115 | 115 | return "https://blog.torproject.org/"
|
116 | 116 | }
|
117 | - val versionNumber: String = fullVersionName.substring(
|
|
118 | - fullVersionName.indexOf('(') + 1,
|
|
119 | - fullVersionName.indexOf(')'),
|
|
120 | - ) // e.g. "13.5a5"
|
|
121 | 117 | val alpha: String = if (versionNumber.contains('a')) "alpha-" else ""
|
122 | 118 | val versionNumberNoDecimals: String =
|
123 | 119 | versionNumber.split('.').joinToString("") // e.g. "135a5"
|
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | <resources>
|
6 | 6 | <!-- Name of the application -->
|
7 | 7 | <string name="app_name" translatable="false">Tor Browser Dev</string>
|
8 | - <string name="firefox" translatable="false">Firefox</string>
|
|
8 | + <string name="firefox" translatable="false">Tor Browser</string>
|
|
9 | 9 | |
10 | 10 | <!-- Preference for developers -->
|
11 | 11 | <string name="preference_leakcanary" translatable="false">LeakCanary</string>
|