summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mill Chen <millchen@google.com> 2022-12-27 02:38:19 +0800
committer Mill Chen <millchen@google.com> 2022-12-27 02:38:19 +0800
commitf3ea3890a106c116e1ec7780450a9a37ca358e7d (patch)
treefbe5f8ddbde647e0d6fba90df66549ea6f9089c8
parent30f206d21a65d9abfa28edd9f0642bb960f11b67 (diff)
Fix overlapping issue in Security certificate page
Bug: 263440830 Test: 1) Settings > Security > More security settings > Encryption & credentials > Trusted credentials > Click a random cert 2) Scroll the list and see if content is overlapping over the spinner Change-Id: Idc378975ea645214369481a9a7f0b4a85e045a05
-rw-r--r--src/com/android/settings/TrustedCredentialsDialogBuilder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/TrustedCredentialsDialogBuilder.java b/src/com/android/settings/TrustedCredentialsDialogBuilder.java
index 363560e7fc9..9a739915bc0 100644
--- a/src/com/android/settings/TrustedCredentialsDialogBuilder.java
+++ b/src/com/android/settings/TrustedCredentialsDialogBuilder.java
@@ -309,6 +309,8 @@ class TrustedCredentialsDialogBuilder extends AlertDialog.Builder {
LinearLayout certLayout = new LinearLayout(mActivity);
certLayout.setOrientation(LinearLayout.VERTICAL);
+ // Prevent content overlapping with spinner
+ certLayout.setClipChildren(true);
certLayout.addView(spinner);
for (int i = 0; i < views.size(); ++i) {
View certificateView = views.get(i);