How to check that screen lock has a password?
===

I'm currently checking if there is a screen lock password  with:

DevicePolicyManager.getgetPasswordMinimumLength() != 0
    
so if I see that the length is 0 I conclude there is no screen lock password and I prompt user to set one with `DevicePolicyManager.ACTION_SET_NEW_PASSWORD`.

I wonder though if it's a correct method of checking whether a screen lock password has been set?