From a51e0cb467d3b1b73ed6406edcb66b5adab5db4f Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 21 Jul 2014 16:34:02 -0700 Subject: Change auto version saving to auto ServerInfo saving --- src/github/daneren2005/dsub/service/parser/AbstractParser.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/service/parser/AbstractParser.java b/src/github/daneren2005/dsub/service/parser/AbstractParser.java index 9db40dad..7d43728a 100644 --- a/src/github/daneren2005/dsub/service/parser/AbstractParser.java +++ b/src/github/daneren2005/dsub/service/parser/AbstractParser.java @@ -127,7 +127,13 @@ public abstract class AbstractParser { rootElementFound = true; String version = get("version"); if (version != null) { - Util.setServerRestVersion(context, new Version(version)); + ServerInfo server = new Server(); + server.setRestVersion(new Version(version)); + + if("madsonic".equals(get("type"))) { + server.setRestType(ServerInfo.TYPE_MADSONIC); + } + server.saveServerInfo(context); } } return name; @@ -138,4 +144,4 @@ public abstract class AbstractParser { throw new Exception(context.getResources().getString(R.string.background_task_parse_error)); } } -} \ No newline at end of file +} -- cgit v1.2.3