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

[tor-commits] [Git][tpo/applications/firefox-android][firefox-android-115.2.1-13.0-1] fixup! Modify UI/UX



Title: GitLab

Dan Ballard pushed to branch firefox-android-115.2.1-13.0-1 at The Tor Project / Applications / firefox-android

Commits:

  • f2fc794e
    by clairehurst at 2023-09-25T12:44:59-06:00
    fixup! Modify UI/UX
    

2 changed files:

Changes:

  • fenix/app/src/main/java/org/mozilla/fenix/settings/SupportUtils.kt
    ... ... @@ -38,10 +38,9 @@ object SupportUtils {
    38 38
         const val MEITUAN_URL = "https://tb.j5k6.com/6ZSOp"
    
    39 39
         const val GOOGLE_US_URL = "https://www.google.com/webhp?client=firefox-b-1-m&channel=ts"
    
    40 40
         const val GOOGLE_XX_URL = "https://www.google.com/webhp?client=firefox-b-m&channel=ts"
    
    41
    -    const val WHATS_NEW_URL = "https://www.mozilla.org/firefox/android/notes"
    
    41
    +    const val WHATS_NEW_URL = "https://www.torproject.org/releases/"
    
    42 42
         const val DONATE_URL = "https://donate.torproject.org/"
    
    43 43
         const val TB_MANUAL_URL = "https://tb-manual.torproject.org/mobile-tor"
    
    44
    -    const val TOR_RELEASES = "https://www.torproject.org/releases/"
    
    45 44
     
    
    46 45
         enum class SumoTopic(internal val topicStr: String) {
    
    47 46
             HELP("faq-android"),
    
    ... ... @@ -101,20 +100,12 @@ object SupportUtils {
    101 100
             return TB_MANUAL_URL
    
    102 101
         }
    
    103 102
     
    
    104
    -    fun getTorReleasePageUrl(): String {
    
    105
    -        return TOR_RELEASES
    
    106
    -    }
    
    107
    -
    
    108 103
         fun getMozillaPageUrl(page: MozillaPage, locale: Locale = Locale.getDefault()): String {
    
    109 104
             val path = page.path
    
    110 105
             val langTag = getLanguageTag(locale)
    
    111 106
             return "https://www.mozilla.org/$langTag/$path"
    
    112 107
         }
    
    113 108
     
    
    114
    -    fun getWhatsNewUrl(@Suppress("UNUSED_PARAMETER") context: Context): String {
    
    115
    -        return getTorReleasePageUrl()
    
    116
    -    }
    
    117
    -
    
    118 109
         fun createCustomTabIntent(context: Context, url: String): Intent = CustomTabsIntent.Builder()
    
    119 110
             .setInstantAppsEnabled(false)
    
    120 111
             .setDefaultColorSchemeParams(
    

  • fenix/app/src/test/java/org/mozilla/fenix/settings/SupportUtilsTest.kt
    ... ... @@ -63,7 +63,7 @@ class SupportUtilsTest {
    63 63
             )
    
    64 64
             assertEquals(
    
    65 65
                 "https://www.torproject.org/releases/",
    
    66
    -            SupportUtils.getTorReleasePageUrl()
    
    66
    +            SupportUtils.WHATS_NEW_URL
    
    67 67
             )
    
    68 68
         }
    
    69 69
     
    

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