summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Liu <dswliu@google.com> 2025-01-24 11:44:44 -0800
committer David Liu <dswliu@google.com> 2025-01-24 11:44:44 -0800
commitecda9213708dfcb9fcdb7b334311c0862a7c225a (patch)
treeeeb402ea1cd099feb6bb1cf31e61ce548af20f37
parent1f19b3d22c81b3f5bddbf3c6e784e985e781d050 (diff)
Add touch filtering for Top Intro Preference
- Adds touch filtering for the Top Intro Preference. This makes the preference not clickable when it's obscured by other windows. HIGH_LEVEL_CL_EXPLANATION: - Tapjacking is currently possible on the TopIntroPreference. Set android:filterTouchesWhenObscured to true to mitigate. (See: https://developer.android.com/privacy-and-security/risks/tapjacking) Bug: 391457154 Change-Id: I7bcb72d9387d2ad88eb34c0c8cbca8f48bd6537d Flag: EXEMPT library Test: atest & manual
-rw-r--r--packages/SettingsLib/TopIntroPreference/res/layout/settingslib_expressive_top_intro.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SettingsLib/TopIntroPreference/res/layout/settingslib_expressive_top_intro.xml b/packages/SettingsLib/TopIntroPreference/res/layout/settingslib_expressive_top_intro.xml
index 834814ccbc6b..1c6b1ebd1535 100644
--- a/packages/SettingsLib/TopIntroPreference/res/layout/settingslib_expressive_top_intro.xml
+++ b/packages/SettingsLib/TopIntroPreference/res/layout/settingslib_expressive_top_intro.xml
@@ -18,7 +18,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
- android:paddingStart="?android:attr/listPreferredItemPaddingStart">
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart"
+ android:filterTouchesWhenObscured="true">
<com.android.settingslib.widget.CollapsableTextView
android:id="@+id/collapsable_text_view"