Show generic ChooseLockPattern title for suw.
Test: atest SetupChooseLockPatternTest Bug: 301260673 Change-Id: I7df499015a1f4c0559f425ad47042dd2a459d1df
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user