diff --git a/app/src/main/java/com/beemdevelopment/aegis/importers/AndOtpFileImporter.java b/app/src/main/java/com/beemdevelopment/aegis/importers/AndOtpFileImporter.java index 138b5a238f..b4cedd3140 100644 --- a/app/src/main/java/com/beemdevelopment/aegis/importers/AndOtpFileImporter.java +++ b/app/src/main/java/com/beemdevelopment/aegis/importers/AndOtpFileImporter.java @@ -69,7 +69,7 @@ private static DatabaseEntry convertEntry(JSONObject obj) throws DatabaseImporte info = new TotpInfo(secret, algo, digits, obj.getInt("period")); break; case "steam": - info = new SteamInfo(secret, algo, digits, obj.getInt("period")); + info = new SteamInfo(secret, algo, digits, obj.optInt("period", 30)); break; default: throw new DatabaseImporterException("unsupported otp type: " + type);