Commit 4666fc3c authored by Alex Catarineu's avatar Alex Catarineu
Browse files

fixup! Bug 40028: Implement new home screen

Fixes #40076: "Explore privately" not visible entirely in French
parent 77e2f0c7
......@@ -192,6 +192,15 @@ class HomeFragment : Fragment() {
val activity = activity as HomeActivity
val components = requireComponents
// Splits by full stops or commas and puts the parts in different lines.
// Ignoring separators at the end of the string, it is expected
// that there are at most two parts (e.g. "Explore. Privately.").
view.exploreprivately.text = view
.exploreprivately
.text
?.replace(" *([.,。।]) *".toRegex(), "$1\n")
?.trim()
currentMode = CurrentMode(
view.context,
onboarding,
......
......@@ -84,8 +84,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|center_vertical"
android:width="199dp"
android:height="110dp"
android:gravity="center_horizontal"
android:clickable="false"
android:ellipsize="end"
android:focusable="false"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment