[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.3.0esr-14.0-1] 2 commits: fixup! [android] Rename as Tor Browser



Title: GitLab

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:

Changes:

  • mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt
    ... ... @@ -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"
    

  • mobile/android/fenix/app/src/main/res/values/static_strings.xml
    ... ... @@ -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>
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits