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
This commit is contained in:
Mill Chen
2022-12-27 02:38:19 +08:00
parent 30f206d21a
commit f3ea3890a1

View File

@@ -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);