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

[tor-commits] [Git][tpo/applications/fenix][tor-browser-82.0.0b4-10.0-1] 2 commits: fixup! Bug 40028: Implement new home screen



Title: GitLab

Matthew Finkel pushed to branch tor-browser-82.0.0b4-10.0-1 at The Tor Project / Applications / fenix

Commits:

2 changed files:

Changes:

  • app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
    ... ... @@ -192,6 +192,15 @@ class HomeFragment : Fragment() {
    192 192
             val activity = activity as HomeActivity
    
    193 193
             val components = requireComponents
    
    194 194
     
    
    195
    +        // Splits by full stops or commas and puts the parts in different lines.
    
    196
    +        // Ignoring separators at the end of the string, it is expected
    
    197
    +        // that there are at most two parts (e.g. "Explore. Privately.").
    
    198
    +        view.exploreprivately.text = view
    
    199
    +            .exploreprivately
    
    200
    +            .text
    
    201
    +            ?.replace(" *([.,。।]) *".toRegex(), "$1\n")
    
    202
    +            ?.trim()
    
    203
    +
    
    195 204
             currentMode = CurrentMode(
    
    196 205
                 view.context,
    
    197 206
                 onboarding,
    

  • app/src/main/res/layout/fragment_home.xml
    ... ... @@ -84,8 +84,7 @@
    84 84
                 android:layout_width="wrap_content"
    
    85 85
                 android:layout_height="wrap_content"
    
    86 86
                 android:layout_gravity="center|center_vertical"
    
    87
    -            android:width="199dp"
    
    88
    -            android:height="110dp"
    
    87
    +            android:gravity="center_horizontal"
    
    89 88
                 android:clickable="false"
    
    90 89
                 android:ellipsize="end"
    
    91 90
                 android:focusable="false"
    

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