@Override
    public void onActivityPaused(Activity activity) {
        if (isIgnoredActivity(activity)) {
            return;
        }

        String clazzName = activity.getClass().getName();
        Log.d(TAG, "onActivityPaused " + clazzName);

        if (!shouldLockSceen(activity) && !(activity instanceof AppLockActivity)) {
            setLastActiveMillis();
        }
    }
Set the algorithm used in {@link #setPasscode(String)}
lib/src/main/java/com/github/omadahealth/lollipin/lib/managers/AppLockImpl.java