Skip to content
Snippets Groups Projects
Commit 5ed0736d authored by Dhina17's avatar Dhina17 Committed by Mohammad Hasan Keramat J
Browse files

fixup! Forward port CM Screen Security settings (1/2)

Fixes custom pattern size in auth prompts from apps.

Change-Id: I8238de614f7acd0e2b286b06775961820b6c10fb
parent 31b65fe5
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@ import com.android.app.animation.Interpolators;
import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.jank.InteractionJankMonitor;
import com.android.internal.widget.LockPatternUtils;
import com.android.internal.widget.LockPatternView;
import com.android.systemui.R;
import com.android.systemui.biometrics.AuthController.ScaleFactorProvider;
import com.android.systemui.biometrics.domain.interactor.PromptCredentialInteractor;
......@@ -497,6 +498,9 @@ public class AuthContainerView extends LinearLayout
case Utils.CREDENTIAL_PATTERN:
mCredentialView = factory.inflate(
R.layout.auth_credential_pattern_view, null, false);
LockPatternView lockPatternView = mCredentialView.findViewById(R.id.lockPattern);
lockPatternView.setLockPatternSize(
mLockPatternUtils.getLockPatternSize(mConfig.mUserId));
break;
case Utils.CREDENTIAL_PIN:
case Utils.CREDENTIAL_PASSWORD:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment