Fix 5466557: Removed secondary screenlock settings labels
Removed summary line from the screen lock picker and displaying the about screen for face unlock every time instead of just the first time Change-Id: Iac572d2366acf28d32e632e8dcdde63475641e39
This commit is contained in:
@@ -19,37 +19,31 @@
|
||||
<PreferenceScreen
|
||||
android:key="unlock_set_off"
|
||||
android:title="@string/unlock_set_unlock_off_title"
|
||||
android:summary="@string/unlock_set_unlock_off_summary"
|
||||
android:persistent="false"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="unlock_set_none"
|
||||
android:title="@string/unlock_set_unlock_none_title"
|
||||
android:summary="@string/unlock_set_unlock_none_summary"
|
||||
android:persistent="false"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="unlock_set_biometric_weak"
|
||||
android:title="@string/unlock_set_unlock_biometric_weak_title"
|
||||
android:summary="@string/unlock_set_unlock_biometric_weak_summary"
|
||||
android:persistent="false"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="unlock_set_pattern"
|
||||
android:title="@string/unlock_set_unlock_pattern_title"
|
||||
android:summary="@string/unlock_set_unlock_pattern_summary"
|
||||
android:persistent="false"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="unlock_set_pin"
|
||||
android:title="@string/unlock_set_unlock_pin_title"
|
||||
android:summary="@string/unlock_set_unlock_pin_summary"
|
||||
android:persistent="false"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="unlock_set_password"
|
||||
android:title="@string/unlock_set_unlock_password_title"
|
||||
android:summary="@string/unlock_set_unlock_password_summary"
|
||||
android:persistent="false"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
@@ -58,6 +58,8 @@ public class ChooseLockGeneric extends PreferenceActivity {
|
||||
private static final String CONFIRM_CREDENTIALS = "confirm_credentials";
|
||||
public static final String MINIMUM_QUALITY_KEY = "minimum_quality";
|
||||
|
||||
private static final boolean ALWAY_SHOW_TUTORIAL = true;
|
||||
|
||||
private ChooseLockSettingsHelper mChooseLockSettingsHelper;
|
||||
private DevicePolicyManager mDPM;
|
||||
private KeyStore mKeyStore;
|
||||
@@ -282,11 +284,12 @@ public class ChooseLockGeneric extends PreferenceActivity {
|
||||
R.string.backup_lock_settings_picker_title);
|
||||
fallBackIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
|
||||
boolean showTutorial = !mChooseLockSettingsHelper.utils().isBiometricWeakEverChosen();
|
||||
boolean showTutorial = ALWAY_SHOW_TUTORIAL ||
|
||||
!mChooseLockSettingsHelper.utils().isBiometricWeakEverChosen();
|
||||
Intent intent = new Intent();
|
||||
intent.setClassName("com.android.facelock", showTutorial
|
||||
? "com.android.facelock.FaceLockTutorial"
|
||||
: "com.android.facelock.SetupFaceLock");
|
||||
: "com.android.facelock.SetupFaceLock");
|
||||
PendingIntent pending = PendingIntent.getActivity(getActivity(), 0, fallBackIntent, 0);
|
||||
intent.putExtra("PendingIntent", pending);
|
||||
return intent;
|
||||
|
Reference in New Issue
Block a user