diff --git a/lib/src/main/java/com/github/orangegangsters/lollipin/lib/managers/AppLockActivity.java b/lib/src/main/java/com/github/orangegangsters/lollipin/lib/managers/AppLockActivity.java index 9e13fe36..af71bd37 100644 --- a/lib/src/main/java/com/github/orangegangsters/lollipin/lib/managers/AppLockActivity.java +++ b/lib/src/main/java/com/github/orangegangsters/lollipin/lib/managers/AppLockActivity.java @@ -116,6 +116,11 @@ private void initLayout(Intent intent) { mStepTextView = (TextView) this.findViewById(R.id.pin_code_step_textview); mPinCodeRoundView = (PinCodeRoundView) this.findViewById(R.id.pin_code_round_view); mPinCodeRoundView.setPinLength(this.getPinLength()); + + mPinCodeRoundView.setFullDotDrawable(getFullDotDrawableId()); + mPinCodeRoundView.setEmptyDotDrawable(getEmptyDotDrawableId()); + mPinCodeRoundView.refresh(mPinCode.length()); + mForgotTextView = (TextView) this.findViewById(R.id.pin_code_forgot_textview); mForgotTextView.setOnClickListener(this); mKeyboardView = (KeyboardView) this.findViewById(R.id.pin_code_keyboard_view); @@ -133,6 +138,20 @@ private void initLayout(Intent intent) { setStepText(); } + /** + * Get full dot drawable id used by {@link com.github.orangegangsters.lollipin.lib.views.PinCodeRoundView} + */ + public int getFullDotDrawableId() { + return R.drawable.pin_code_round_full; + } + + /** + * Get empty dot drawable id used by {@link com.github.orangegangsters.lollipin.lib.views.PinCodeRoundView} + */ + public int getEmptyDotDrawableId() { + return R.drawable.pin_code_round_empty; + } + /** * Init {@link FingerprintManager} of the {@link android.os.Build.VERSION#SDK_INT} is > to Marshmallow * and {@link FingerprintManager#isHardwareDetected()}.