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

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-153.3.0esr-16.0-1] fixup! [android] Bug 45217: Implement YEC 2026 Takeover for Android Stable



Title: GitLab

Dan Ballard pushed to branch tor-browser-153.3.0esr-16.0-1 at The Tor Project / Applications / Tor Browser

Commits:

  • 73d0d638
    by clairehurst at 2026-09-21T16:46:24-06:00
    fixup! [android] Bug 45217: Implement YEC 2026 Takeover for Android Stable
    
    Add illustration description
    

2 changed files:

Changes:

  • mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tor/CampaignCompose.kt
    ... ... @@ -152,11 +152,11 @@ private fun DynamicCampaignContent(
    152 152
         onDonateButtonClicked: () -> Unit,
    
    153 153
     ) {
    
    154 154
         @Composable
    
    155
    -    fun Icon(shouldShow: Boolean, @DrawableRes drawable: Int) {
    
    155
    +    fun Icon(shouldShow: Boolean, @DrawableRes drawable: Int, contentDescription: String? = null) {
    
    156 156
             if (shouldShow) {
    
    157 157
                 Image(
    
    158 158
                     painterResource(drawable),
    
    159
    -                contentDescription = null,
    
    159
    +                contentDescription = contentDescription,
    
    160 160
                     alignment = Alignment.Center,
    
    161 161
                 )
    
    162 162
             }
    
    ... ... @@ -171,7 +171,7 @@ private fun DynamicCampaignContent(
    171 171
                 modifier = Modifier.fillMaxWidth(),
    
    172 172
                 horizontalAlignment = if (alternateLayout) Alignment.Start else Alignment.CenterHorizontally,
    
    173 173
             ) {
    
    174
    -            Icon(shouldShow = !alternateLayout, R.drawable.bulb_illo_yec)
    
    174
    +            Icon(shouldShow = !alternateLayout, R.drawable.bulb_illo_yec, contentDescription = stringResource(R.string.bulb_illo_yec_description))
    
    175 175
                 Spacer(Modifier.size (if (alternateLayout) 0.dp else 16.dp))
    
    176 176
                 Row(verticalAlignment = Alignment.CenterVertically) {
    
    177 177
                     Icon(shouldShow = alternateLayout, R.drawable.circled_lighning_yec)
    

  • mobile/android/fenix/app/src/main/res/values/torbrowser_strings.xml
    ... ... @@ -194,5 +194,7 @@
    194 194
         <string name="yec26_tor_powered_by_you">Tor: powered by you</string>
    
    195 195
         <!-- Year End Campaign 2026. Main body text. -->
    
    196 196
         <string name="yec26_call_to_action">Unlike Big Tech, Tor doesn’t sell your data to make money. Instead, 6,490 donors every year keep Tor strong. Join the movement with a donation today!</string>
    
    197
    +    <!-- Year End Campaign 2026. Main image description. -->
    
    198
    +    <string name="bulb_illo_yec_description">Illustration of a pink hand reaching to turn on a pink light bulb on a violet background. The light bulb vaguely resembles an onion with greens coming out of the top. There are playful bolts coming out of the bulb, and a green heart on the sleeve of the shirt.</string>
    
    197 199
     
    
    198 200
     </resources>

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx