Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
fenix
Commits
3ea5b081
Commit
3ea5b081
authored
Feb 07, 2020
by
mcarare
Committed by
Jeff Boek
Feb 07, 2020
Browse files
For #8190: Add animation to ETP policy selection
parent
88ed1e48
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/home/sessioncontrol/viewholders/onboarding/OnboardingTrackingProtectionViewHolder.kt
View file @
3ea5b081
...
...
@@ -54,10 +54,7 @@ class OnboardingTrackingProtectionViewHolder(view: View) : RecyclerView.ViewHold
updateTrackingProtectionPolicy
()
}
view
.
protection_standard_title
.
setOnClickListener
{
standardTrackingProtection
.
performClick
()
}
view
.
protection_standard_description
.
setOnClickListener
{
view
.
clickable_region_standard
.
setOnClickListener
{
standardTrackingProtection
.
performClick
()
}
...
...
@@ -65,11 +62,7 @@ class OnboardingTrackingProtectionViewHolder(view: View) : RecyclerView.ViewHold
updateTrackingProtectionPolicy
()
}
view
.
protection_strict_title
.
setOnClickListener
{
strictTrackingProtection
.
performClick
()
}
view
.
protection_strict_description
.
setOnClickListener
{
view
.
clickable_region_strict
.
setOnClickListener
{
strictTrackingProtection
.
performClick
()
}
}
...
...
app/src/main/res/layout/onboarding_tracking_protection.xml
View file @
3ea5b081
...
...
@@ -42,6 +42,16 @@
app:layout_constraintTop_toBottomOf=
"@id/header_text"
tools:text=
"@string/onboarding_tracking_protection_description1"
/>
<View
android:id=
"@+id/clickable_region_standard"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:foreground=
"@drawable/rounded_ripple"
app:layout_constraintBottom_toBottomOf=
"@id/protection_standard_description"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"@id/tracking_protection_standard_option"
/>
<org.mozilla.fenix.onboarding.OnboardingRadioButton
android:id=
"@+id/tracking_protection_standard_option"
android:layout_width=
"wrap_content"
...
...
@@ -76,6 +86,16 @@
app:layout_constraintStart_toStartOf=
"@+id/protection_standard_title"
app:layout_constraintTop_toBottomOf=
"@id/protection_standard_title"
/>
<View
android:id=
"@+id/clickable_region_strict"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:foreground=
"@drawable/rounded_ripple"
app:layout_constraintBottom_toBottomOf=
"@id/protection_strict_description"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"@id/tracking_protection_strict_default"
/>
<org.mozilla.fenix.onboarding.OnboardingRadioButton
android:id=
"@+id/tracking_protection_strict_default"
android:layout_width=
"wrap_content"
...
...
@@ -112,5 +132,4 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"@+id/protection_strict_title"
app:layout_constraintTop_toBottomOf=
"@id/protection_strict_title"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment