Fix bug where parsing otp codes was impossible

Y I K E S
This commit is contained in:
Michael Schättgen 2019-04-17 13:37:53 +02:00
parent feea9a2e67
commit b958145761

View file

@ -58,7 +58,7 @@ public class GoogleAuthInfo {
public static GoogleAuthInfo parseUri(Uri uri) throws GoogleAuthInfoException {
String scheme = uri.getScheme();
if (scheme == null || scheme.equals("otpauth")) {
if (scheme == null || !scheme.equals("otpauth")) {
throw new GoogleAuthInfoException("unsupported protocol");
}