Fix incorrect SetupChooseLockPattern layout

Root cause:
- The new added description TextView is too large
- sud_layout_description was add in sud_layout_content
  instead of sud_layout_header.

Solution:
- Set string lockpassword_choose_your_pattern_description
  to GlifLayout as it's description.(Header description)

Bug: 233666752
Fixes 239892091
Test: manual in setup flow, check choose lock pattern layouts
showing expectedly on both phone & tablet
Test: make RunSettingsRoboTests

Change-Id: Iabe503066434f8983dffb88d1c93f2bbf773b860
This commit is contained in:
lbill
2022-07-25 10:29:00 +00:00
parent 037cf476e7
commit 07b149ec51
3 changed files with 15 additions and 11 deletions

View File

@@ -143,7 +143,8 @@ public class SetupChooseLockPattern extends ChooseLockPattern {
}
final GlifLayout layout = getActivity().findViewById(R.id.setup_wizard_layout);
layout.setDescriptionText("");
layout.setDescriptionText(
getString(R.string.lockpassword_choose_your_pattern_description));
}
@Override