Merge "Show generic ChooseLockPattern title for suw." into main

This commit is contained in:
Hao Dong
2024-01-19 19:08:50 +00:00
committed by Android (Google) Code Review
3 changed files with 19 additions and 2 deletions

View File

@@ -469,9 +469,9 @@ public class ChooseLockPattern extends SettingsActivity {
private void updateActivityTitle() {
final String msg;
if (mForFingerprint) {
if (mForFingerprint && !shouldShowGenericTitle()) {
msg = getString(R.string.lockpassword_choose_your_pattern_header_for_fingerprint);
} else if (mForFace) {
} else if (mForFace && !shouldShowGenericTitle()) {
msg = getString(R.string.lockpassword_choose_your_pattern_header_for_face);
} else if (mIsManagedProfile) {
msg = getContext().getSystemService(DevicePolicyManager.class).getResources()
@@ -486,6 +486,10 @@ public class ChooseLockPattern extends SettingsActivity {
getActivity().setTitle(msg);
}
protected boolean shouldShowGenericTitle() {
return false;
}
@SuppressLint("ClickableViewAccessibility")
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,

View File

@@ -160,6 +160,11 @@ public class SetupChooseLockPattern extends ChooseLockPattern {
}
}
@Override
protected boolean shouldShowGenericTitle() {
return true;
}
@Override
protected Intent getRedactionInterstitialIntent(Context context) {
// Setup wizard's redaction interstitial is deferred to optional step. Enable that