Merge pull request #7796 from vector-im/feature/mna/security-recommendations-tappable

[Session manager] Security recommendations cards: whole view should be tappable (PSG-1117)
This commit is contained in:
Maxime NATUREL 2022-12-19 14:09:09 +01:00 committed by GitHub
commit c7de0523e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

1
changelog.d/7795.feature Normal file
View file

@ -0,0 +1 @@
[Session manager] Security recommendations cards: whole view should be tappable

View file

@ -53,6 +53,9 @@ class SecurityRecommendationView @JvmOverloads constructor(
setImage(it)
}
setOnClickListener {
callback?.onViewAllClicked()
}
views.recommendationViewAllButton.setOnClickListener {
callback?.onViewAllClicked()
}

View file

@ -5,6 +5,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_current_session"
android:foreground="?attr/selectableItemBackground"
android:paddingHorizontal="16dp"
android:paddingTop="16dp"
android:paddingBottom="8dp">