Matthew Finkel pushed to branch tor-browser-82.0.0b4-10.0-1 at The Tor Project / Applications / fenix
Commits:
-
4666fc3c
by Alex Catarineu at 2020-10-19T16:56:35+02:00
-
5b768f33
by Matthew Finkel at 2020-10-19T20:01:47+00:00
2 changed files:
Changes:
| ... | ... | @@ -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,
|
| ... | ... | @@ -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"
|